Submission #165811

#TimeUsernameProblemLanguageResultExecution timeMemory
165811Abdulaziz_KazimKarte (COCI15_karte)C++17
50 / 50
7 ms376 KiB
#include<bits/stdc++.h> using namespace std; int main() { set<string>kart; map<char,int> dizi; // freopen("a.gir","r",stdin); // freopen("a.cik","w",stdout); string gir; cin >> gir; for(int i=0;i<gir.size();i+=3) { if(kart.insert(gir.substr(i,3)).second==false) { cout << "GRESKA\n"; exit(0); } dizi[gir[i]]++; } cout << 13-dizi['P'] << " " << 13-dizi['K'] << " " << 13-dizi['H'] << " " << 13-dizi['T'] << " "; }

Compilation message (stderr)

karte.cpp: In function 'int main()':
karte.cpp:11:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<gir.size();i+=3)
              ~^~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...