标签:blog efi strlen define pre 数据规模 stream freopen ios
#include <iostream> #include <cstdio> #include <cmath> #include <vector> #include <queue> #include <cstring> #include <algorithm> #include <cstdlib> #define for(i,x,n) for(int i=x;i<n;i++) #define ll long long int #define INF 0x3f3f3f3f #define MOD 1000000007 #define MAX_N 50005 using namespace std; int main() { //freopen("input.txt", "r", stdin); //freopen("data.out", "w", stdout); char a[100]; scanf("%s",a); int len=strlen(a); for(i,0,len){ if(a[i]==‘Z‘){ a[i]=‘a‘; }else if(a[i]==‘z‘){ a[i]=‘A‘; }else if(a[i]>=65 &&a[i]<=90 || a[i]>=97&&a[i]<=122){ a[i]+=1; }else { continue; } } printf("%s",a); //fclose(stdin); //fclose(stdout); return 0; } //
标签:blog efi strlen define pre 数据规模 stream freopen ios
原文地址:http://www.cnblogs.com/TWS-YIFEI/p/6368188.html