SPOJ Problem 400:To and Fro 题目大意:给你一个数字和一串字符串,要求排列成宽为给定数字的矩阵,奇数行字符串向右排列而偶数行向左,再从上到下输出。 反正也是水题,模拟一下。 #include<cstdio>#include<cstring>intn,i,j,l;chars[205],a[205];intmain(){while(scanf("%d",&n)&&n){ scanf("%s"...
Mo and Larry have devised a way of encrypting messages. They first decide secretly on the number of columns and write the message (letters only) down the columns, padding with extra random letters so as to make a rectangular array of letters. For example, if the message is “There’s no...
28 changes: 28 additions & 0 deletions 28 TOANDFRO.py Original file line numberDiff line numberDiff line change @@ -0,0 +1,28 @@ while True: n=int(input()) if n==0: break msg=str(input()) arr=[] i=0 count=0 while i<len(msg): count+=1 if count%2==1: arr.append(...
tyama_PKU2299-aizu0167-aizuALDS1~5D-spojINVCNT-hackerrank~runningtime-hackerrank~insertionsort-hackerrank~30sorting-codeiq432-kcs1009K-kcs1031A-atcoderchokudais001J-atcoder075E-yukicoder742.ctyama_PKU2301-TJU1457-ZJU2388.c tyama_PKU2302.c ...
This I find to be the rule rather than the exception. Can you imagine such a thing, a man in Texas with a web site that explains Texas bank looting better than any in the world and guess what? He is having the same kind of uncommon problems keeping his site up as I do. Yesterday...
3. Můžeme vás také přidat do skupiny překladatelů pro případné dotazy a aktualizace - spojte se se mnou přes chat. ## Průběh překladu 1. Začněte prosím od [aplikace pro Android](https://hosted.weblate.org/projects/simplex-chat/android/), a to jak při...