#include <cstdio>
#include <vector>
typedef long long lint;
using namespace std;
lint bino[64][64], t;
int main(){
scanf("%lld",&t);
for (int i=0; i<64; i++) {
bino[i][0] = 1;
for (int j=1; j<=i; j++) {
bino[i][j] = bino[i-1][j-1] + bino[i-1][j];
}
}
vector<int> v;
for (int i=0; i<64; i++) {
v.push_back(1);
}
for (int i=31; i>=0; i--) {
if(t >= bino[63][i]){
v.push_back(300 - i);
}
}
printf("300 %d\n",(int)v.size());
for (auto &i : v){
printf("%d ",i);
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
1240 KB |
Output isn't correct - Integer parameter [name=a_i] equals to 300, violates the range [1, 65] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Halted |
0 ms |
0 KB |
- |