为何全WA了...

P2955 [USACO09OCT] Even? Odd? G

现在的进度是 ```cpp include <iostream> include <cstring> int main() { using namespace std; int n,l; char s[65]; cin>>n; for(int i=1;i<=n;i++) { cin>>s; l=strlen(s); if((s[l-1]-'0')%2==0) cout<<"even"<<endl; else cout<<"odd"<<endl; } return 0; }
by syanoeclipse @ 2019-07-03 15:45:05


/px 学好英语的重要性(
by AmamiyaYuuko @ 2020-02-12 02:15:02


上一页 |