4C Codeforces - Registration System Mohamed Sobhi 6:03 ص C Problems , Codeforces Edit 4C Codeforces Registration System Solution in ++ #include <iostream> #include <map> using namespace std; int main() { map<string,int> ma; int n; cin>>n; for(int i=0;i<n;i++){ string t; cin>>t; if(ma[t]==0){ cout<<"OK\n"; ma[t]++; } else{ cout<<t<<ma[t]<<"\n"; ma[t]++; } } return 0; } Share on Facebook Share on Twitter Share on Google Plus About Mohamed Sobhi My name is Mo.Sobhy ,I study at School excelling high school in Ain Shams ,Cairo My hobbies is programming ,and web development ,playing chess and writing horror stories. RELATED POSTS 982D codeforces - Shark25D codeforces - Roads not only in ...435A codeforces - Queue on bus stop
0 التعليقات:
إرسال تعليق