Submission #601450

# Submission time Handle Problem Language Result Execution time Memory
601450 2022-07-21T23:50:50 Z czhang2718 Sob (COCI19_sob) C++17
0 / 110
2 ms 340 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=n;
    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 1 ms 316 KB Integer parameter [name=y] equals to 128, violates the range [724385, 724512]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 340 KB Integer parameter [name=y] equals to 3377, violates the range [4815, 8191]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Integer parameter [name=y] equals to 12, violates the range [178, 189]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 316 KB Integer parameter [name=y] equals to 128, violates the range [724385, 724512]
2 Halted 0 ms 0 KB -