| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
额,我是水货,还是懒货--!#include<iostream>
#include<stdio.h>
#include<math.h>
#include<stdlib.h>
#include<string>
#include<string.h>
#include<algorithm>
#define N 10001
using namespace std;
char chs[100]="1234567890-=QWERTYUIOP[]\\ASDFGHJKL;'ZXCVBNM,./";
char s[N];
int main()
{
int i,j;
while(gets(s))
{
for(i=0;i<strlen(s);i++)
{
if(s[i]==' ')continue;
for(j=0;j<strlen(chs);j++)
if(s[i]==chs[j]) s[i]=chs[j-1];
}
puts(s);
}
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator