# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
439261 | 2021-06-29T12:59:30 Z | hossain2020 | Shopping (JOI21_shopping) | C++14 | 4 ms | 388 KB |
#include "Anna.h" #include <vector> #include <bits/stdc++.h> using namespace std; namespace { int n, l, r,k; int c,o; } // namespace vector <long long > v; void InitA(int N, int L, int R) { n= N; l= L; r= R; int a=r-l; for (int i=0;i<18;i++) { SendA(l%2); l/=2; } l=L; } void ReceiveA(bool x) { v.push_back(int(x)); } int Answer() { int o=0,s=0,k=l; for (int i=0;i<v.size();) { s=0; o=0; for (int j=0;j<18;j++) { o+=(1<<s)*v[i]; i++; s++; } o+=l; if (o<=r)k=o; } return k; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 384 KB | Output is correct |
2 | Correct | 2 ms | 384 KB | Output is correct |
3 | Correct | 2 ms | 384 KB | Output is correct |
4 | Correct | 2 ms | 384 KB | Output is correct |
5 | Correct | 2 ms | 384 KB | Output is correct |
6 | Correct | 3 ms | 384 KB | Output is correct |
7 | Correct | 3 ms | 384 KB | Output is correct |
8 | Correct | 3 ms | 384 KB | Output is correct |
9 | Correct | 3 ms | 388 KB | Output is correct |
10 | Correct | 4 ms | 384 KB | Output is correct |
11 | Correct | 3 ms | 384 KB | Output is correct |
12 | Correct | 2 ms | 384 KB | Output is correct |
13 | Runtime error | 1 ms | 192 KB | Execution killed with signal 13 |
14 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 384 KB | Output is correct |
2 | Correct | 2 ms | 384 KB | Output is correct |
3 | Correct | 2 ms | 384 KB | Output is correct |
4 | Correct | 2 ms | 384 KB | Output is correct |
5 | Correct | 2 ms | 384 KB | Output is correct |
6 | Correct | 3 ms | 384 KB | Output is correct |
7 | Correct | 3 ms | 384 KB | Output is correct |
8 | Correct | 3 ms | 384 KB | Output is correct |
9 | Correct | 3 ms | 388 KB | Output is correct |
10 | Correct | 4 ms | 384 KB | Output is correct |
11 | Correct | 3 ms | 384 KB | Output is correct |
12 | Correct | 2 ms | 384 KB | Output is correct |
13 | Runtime error | 1 ms | 192 KB | Execution killed with signal 13 |
14 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 272 KB | Wrong Answer [2] |
2 | Halted | 0 ms | 0 KB | - |