Submission #760244

# Submission time Handle Problem Language Result Execution time Memory
760244 2023-06-17T10:39:36 Z drdilyor Party (INOI20_party) C++17
0 / 100
1 ms 212 KB
#include<bits/stdc++.h>
int ans[]{0,
571428577,
401574811,
68575102,
347470132,
149707164,
295038330,
246944817,
168459846,
848759170,
753916649,
874259235,
436845857,
455803345,
732110426,
912252260,
380931639,
725126576,
755085026,
497747095,
601032270,
132018618,
195747679,
326166778,
90750519,
950969612,
561147124,
716973945,
398359507,
245333203,
645374876,
58517764,
882537570,
387870120,
174478760,
770163916,
657328870,
392199940,
752435265,
596273060,
880391751,
607922078,
465118232,
314990412,
429160328,
670114601,
83625202,
713881005,
807523234,
400261067,
826581252,
770146593,
608067344,
280418783,
20107917,
573628670,
767615667,
381834390,
980680016,
};
int main() {
    using namespace std;
    int q; cin >> q;
    while (q--) {
        long long n; cin >> n;
        cout << ans[__lg(n+1)] << '\n';
    }
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -