Search found 1 match

by fireflies
Wed Apr 22, 2015 9:47 am
Forum: Volume 15 (1500-1599)
Topic: 1585 - Score
Replies: 5
Views: 3174

1585-score

keep getting WA on this one. whats wrong?? #include<iostream> #include<cstring> using namespace std; int main() { int i,ans,T,j; string s; cin>>T; for(j=0;j<T;j++) { int c=0,sum=0; cin>>s; for(i=0;i<s.size();i++) { if(s[i]=='o') s[i]=1; if(s[i]=='x') s[i]=0; } for(i=0;i<s.size();i++) { if(s[i]==0) {...

Go to advanced search