제출 #552086

#제출 시각아이디문제언어결과실행 시간메모리
552086Trisanu_DasMemory (IOI10_memory)C++17
0 / 100
1 ms208 KiB
#include <bits/stdc++.h>
using namespace std;
#include "grader.h"

void play(){
  // saving the previously found values of the characters
  int pos[51] = {};
  for(int i = 1; i <= 50; i++){
    int card = faceup(i);
    //if not previously found, check with others
    if(pos[card] == 0){
      pos[card] = i; faceup(card % 50 + 1);
    }else{ // if found earlier, get a chocolate!!
      faceup(pos[card]);
    }
  }
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...