This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |