제출 #165811

#제출 시각아이디문제언어결과실행 시간메모리
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'] << " "; }

컴파일 시 표준 에러 (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...