标签:math text scanf cst others getchar ble desc i++
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 0 Accepted Submission(s): 0
#include <iostream> #include <cstdio> #include <cstring> using namespace std; int main() { int t; scanf("%d",&t); while(t--){ char c[2000]; getchar(); for(int i=0;i<14;i++) getchar(); scanf("%s",c); int l=strlen(c); if(l==1){ if(c[0]==‘?‘){ printf("-_-\n"); } if(c[0]==‘.‘){ printf("Orz\n"); } if(c[0]==‘!‘){ printf("Wow!\n"); } }else{ printf("W"); for(int i=0;i<l;i++){ printf("o"); } printf("w!\n"); } } return 0; }
标签:math text scanf cst others getchar ble desc i++
原文地址:http://www.cnblogs.com/TWS-YIFEI/p/6217883.html