# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
87644 | jvalsortav | Karte (COCI15_karte) | C++14 | 3 ms | 724 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <iostream>
#include <cctype>
#include <ctime>
#include <set>
#include <string.h>
using namespace std;
set <int> p, k, h, t;
char s[1010];
int x;
bool inf = true;
int main() {
/*for (int i = 0; i < 13; i++){
p.insert(i+1);
k.insert(i+1)
h.insert(i+1)
t.insert(i+1)
}*/
cin >> s;
int l = strlen(s);
int i = 0;
while (i < l){
x = (s[i+1] - '0') * 10 + s[i+2] - '0';
if (s[i] == 'P'){
if (p.count(x)){
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |