Submission #122471


Source Code Expand

#include<iostream>
#include<string>
using namespace std;
int main(void){
string S,T;
string A="atcoder";
int cnt=0;
cin >> S;
cin >> T;
 
for(int i=0;i<S.size();i++){
if(S[i]==T[i]){
cnt++;
}
else{
if(S[i]=='@'||T[i]=='@'){
for(int j=0;j<A.size();j++)
if(S[i]==A[j]&&T[i]==A[j])
cnt++;
}
}
 
if(cnt==S.size())cout << "You can win" << endl;
else cout << "You will lose" << endl;
 
return 0;
}

Submission Info

Submission Time
Task B - AtCoderトランプ
User tkzw_21
Language C++ (G++ 4.6.4)
Score 0
Code Size 417 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:27:1: error: expected ‘}’ at end of input