# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
601451 |
2022-07-21T23:52:10 Z |
czhang2718 |
Sob (COCI19_sob) |
C++17 |
|
55 ms |
5076 KB |
#include "bits/stdc++.h"
using namespace std;
int n, m;
int main(){
cin.tie(0)->sync_with_stdio(0);
cin >> n >> m;
int j=m;
int i=n-1;
int k=0;
while(i>=0){
while(i+(1<<k)<j) k++;
for(int p=j; p<=i+(1<<k); p++){
cout << p-(1<<k) << " " << p << "\n";
}
int d=i+(1<<k)-j+1;
j+=d;
i-=d;
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
55 ms |
5076 KB |
Integer parameter [name=x] equals to -324191, violates the range [0, 127] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
340 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
Integer parameter [name=x] equals to -78, violates the range [0, 11] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
55 ms |
5076 KB |
Integer parameter [name=x] equals to -324191, violates the range [0, 127] |
2 |
Halted |
0 ms |
0 KB |
- |