# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
171156 | 2019-12-27T13:58:50 Z | juggernaut | Nice sequence (IZhO18_sequence) | C++14 | 3 ms | 400 KB |
//Just try and the idea will come! #include<bits/stdc++.h> #define int long long int using namespace std; int t,n,m,i; main(){ scanf("%lld",&t); while(t--){ scanf("%lld%lld",&n,&m); printf("%lld\n",(max(n,m)-1)); for(i=1;i<max(n,m);i++)printf("%lld ",(n-m==0)?1:n-m); puts(""); } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 256 KB | Ok |
2 | Correct | 3 ms | 376 KB | Ok |
3 | Correct | 2 ms | 376 KB | Ok |
4 | Correct | 2 ms | 256 KB | Ok |
5 | Correct | 2 ms | 376 KB | Ok |
6 | Correct | 2 ms | 376 KB | Ok |
7 | Correct | 3 ms | 400 KB | Ok |
8 | Correct | 2 ms | 256 KB | Ok |
9 | Correct | 3 ms | 376 KB | Ok |
10 | Correct | 3 ms | 368 KB | Ok |
11 | Correct | 2 ms | 376 KB | Ok |
12 | Correct | 2 ms | 376 KB | Ok |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 376 KB | Jury has the better answer : jans = 3, pans = 2 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 256 KB | Jury has the better answer : jans = 3, pans = 2 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 256 KB | Jury has the better answer : jans = 3, pans = 2 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 256 KB | Ok |
2 | Correct | 3 ms | 376 KB | Ok |
3 | Correct | 2 ms | 376 KB | Ok |
4 | Correct | 2 ms | 256 KB | Ok |
5 | Correct | 2 ms | 376 KB | Ok |
6 | Correct | 2 ms | 376 KB | Ok |
7 | Correct | 3 ms | 400 KB | Ok |
8 | Correct | 2 ms | 256 KB | Ok |
9 | Correct | 3 ms | 376 KB | Ok |
10 | Correct | 3 ms | 368 KB | Ok |
11 | Correct | 2 ms | 376 KB | Ok |
12 | Correct | 2 ms | 376 KB | Ok |
13 | Incorrect | 2 ms | 256 KB | Jury has the better answer : jans = 3, pans = 2 |
14 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 256 KB | Ok |
2 | Correct | 3 ms | 376 KB | Ok |
3 | Correct | 2 ms | 376 KB | Ok |
4 | Correct | 2 ms | 256 KB | Ok |
5 | Correct | 2 ms | 376 KB | Ok |
6 | Correct | 2 ms | 376 KB | Ok |
7 | Correct | 3 ms | 400 KB | Ok |
8 | Correct | 2 ms | 256 KB | Ok |
9 | Correct | 3 ms | 376 KB | Ok |
10 | Correct | 3 ms | 368 KB | Ok |
11 | Correct | 2 ms | 376 KB | Ok |
12 | Correct | 2 ms | 376 KB | Ok |
13 | Incorrect | 2 ms | 376 KB | Jury has the better answer : jans = 3, pans = 2 |
14 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 256 KB | Ok |
2 | Correct | 3 ms | 376 KB | Ok |
3 | Correct | 2 ms | 376 KB | Ok |
4 | Correct | 2 ms | 256 KB | Ok |
5 | Correct | 2 ms | 376 KB | Ok |
6 | Correct | 2 ms | 376 KB | Ok |
7 | Correct | 3 ms | 400 KB | Ok |
8 | Correct | 2 ms | 256 KB | Ok |
9 | Correct | 3 ms | 376 KB | Ok |
10 | Correct | 3 ms | 368 KB | Ok |
11 | Correct | 2 ms | 376 KB | Ok |
12 | Correct | 2 ms | 376 KB | Ok |
13 | Incorrect | 2 ms | 376 KB | Jury has the better answer : jans = 3, pans = 2 |
14 | Halted | 0 ms | 0 KB | - |