# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
609895 | 2022-07-28T03:04:19 Z | irmuun | Hotter Colder (IOI10_hottercolder) | C++17 | 389 ms | 262144 KB |
#include<bits/stdc++.h> using namespace std; #define ll long long #define ff first #define ss second int Guess(int n); int HC(int n){ int ans=1; int p[n+5]; for(int i=1;i<=n;i++){ p[i]=Guess(i); } if(n==1){ return 1; } if(n==2){ if(p[2]==-1){ return 1; } else{ return 2; } } if(p[2]==-1){ return 1; } if(p[n]==1){ return n; } for(int i=2;i<n;i++){ if(p[i+1]==-1){ return i; } } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 173 ms | 1236 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 161 ms | 1288 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 163 ms | 1284 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 389 ms | 262144 KB | Execution killed with signal 9 |