Submission #72551

# Submission time Handle Problem Language Result Execution time Memory
72551 2018-08-26T08:58:45 Z 마릴린 희정(#2180, gs14004, ho94949) Key of Impassable Doors (FXCUP3_key) C++17
23 / 100
11 ms 1772 KB
#include "key.h"
#include<cstdio>
void EnsureKeyInfo(int N) {
  int key[100];
  for(int i=1; i<=N; ++i)
  {
    TakeKey(i);
    key[i] = Explore();
    Report(i, i);
  }
  for(int i=1; i<=N; ++i)
  {
    for(int j=1; j<i; ++j)
    {
      //if(i!=j) continue;
      TakeKey(i);
      TakeKey(j);
      int v = Explore();
      if(v == key[i])
      {
        //printf("%d %d\n", i, j);
        Report(i, j);
      }
      if(v == key[j])
      {
        //printf("%d %d\n", j, i);
        Report(j, i);
      }
    }
  }
}
# Verdict Execution time Memory Grader output
1 Correct 2 ms 248 KB Output is correct
2 Correct 4 ms 616 KB Output is correct
3 Correct 4 ms 648 KB Output is correct
4 Correct 3 ms 724 KB Output is correct
5 Correct 3 ms 724 KB Output is correct
6 Correct 3 ms 800 KB Output is correct
7 Correct 6 ms 932 KB Output is correct
8 Correct 5 ms 956 KB Output is correct
9 Correct 5 ms 1004 KB Output is correct
10 Correct 4 ms 1004 KB Output is correct
11 Correct 4 ms 1004 KB Output is correct
12 Correct 4 ms 1004 KB Output is correct
13 Correct 5 ms 1004 KB Output is correct
14 Correct 4 ms 1004 KB Output is correct
15 Correct 5 ms 1004 KB Output is correct
16 Correct 5 ms 1004 KB Output is correct
17 Correct 5 ms 1004 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 248 KB Output is correct
2 Correct 4 ms 616 KB Output is correct
3 Correct 4 ms 648 KB Output is correct
4 Correct 3 ms 724 KB Output is correct
5 Correct 3 ms 724 KB Output is correct
6 Correct 3 ms 800 KB Output is correct
7 Correct 6 ms 932 KB Output is correct
8 Correct 5 ms 956 KB Output is correct
9 Correct 5 ms 1004 KB Output is correct
10 Correct 4 ms 1004 KB Output is correct
11 Correct 4 ms 1004 KB Output is correct
12 Correct 4 ms 1004 KB Output is correct
13 Correct 5 ms 1004 KB Output is correct
14 Correct 4 ms 1004 KB Output is correct
15 Correct 5 ms 1004 KB Output is correct
16 Correct 5 ms 1004 KB Output is correct
17 Correct 5 ms 1004 KB Output is correct
18 Runtime error 11 ms 1772 KB Execution failed because the return code was nonzero
19 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 2 ms 248 KB Output is correct
2 Correct 4 ms 616 KB Output is correct
3 Correct 4 ms 648 KB Output is correct
4 Correct 3 ms 724 KB Output is correct
5 Correct 3 ms 724 KB Output is correct
6 Correct 3 ms 800 KB Output is correct
7 Correct 6 ms 932 KB Output is correct
8 Correct 5 ms 956 KB Output is correct
9 Correct 5 ms 1004 KB Output is correct
10 Correct 4 ms 1004 KB Output is correct
11 Correct 4 ms 1004 KB Output is correct
12 Correct 4 ms 1004 KB Output is correct
13 Correct 5 ms 1004 KB Output is correct
14 Correct 4 ms 1004 KB Output is correct
15 Correct 5 ms 1004 KB Output is correct
16 Correct 5 ms 1004 KB Output is correct
17 Correct 5 ms 1004 KB Output is correct
18 Runtime error 11 ms 1772 KB Execution failed because the return code was nonzero
19 Halted 0 ms 0 KB -