PAT 1009. 說反話 (20)

  代碼 #include<bits/stdc++.h> using namespace std; char s[100]; string b[100]; int main() { int i,j,k,t; gets(s); int n=strlen(s); cout<<n<<endl; for(i=0,j=0;i<n;i++) { if(s[i]==' ') { b[j][k]='\0'; j+
相關文章
相關標籤/搜索