QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#772766 | #2276. Newspapers | liuziao | 4 | 0ms | 3720kb | C++23 | 487b | 2024-11-22 21:41:18 | 2024-11-22 21:41:19 |
Judging History
answer
#include <bits/stdc++.h>
// #define int int64_t
int n, m;
void dickdreamer() {
std::cin >> n >> m;
std::cout << (m == n - 1 ? "YES\n0\n" : "NO\n");
}
int32_t main() {
#ifdef ORZXKR
freopen("in.txt", "r", stdin);
freopen("out.txt", "w", stdout);
#endif
std::ios::sync_with_stdio(0), std::cin.tie(0), std::cout.tie(0);
int T = 1;
// std::cin >> T;
while (T--) dickdreamer();
// std::cerr << 1.0 * clock() / CLOCKS_PER_SEC << "s\n";
return 0;
}
详细
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 6
Acceptable Answer
time: 0ms
memory: 3648kb
input:
1 0
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #2:
score: 6
Acceptable Answer
time: 0ms
memory: 3652kb
input:
2 1 1 2
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #3:
score: 6
Acceptable Answer
time: 0ms
memory: 3652kb
input:
5 4 1 2 2 3 3 4 4 5
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #4:
score: 6
Acceptable Answer
time: 0ms
memory: 3616kb
input:
6 5 1 2 2 3 3 4 4 5 5 6
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #5:
score: 6
Acceptable Answer
time: 0ms
memory: 3660kb
input:
4 3 1 2 1 3 1 4
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #6:
score: 6
Acceptable Answer
time: 0ms
memory: 3664kb
input:
7 6 1 2 1 3 1 4 1 5 5 6 5 7
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #7:
score: 12
Accepted
time: 0ms
memory: 3712kb
input:
3 3 1 2 2 3 3 1
output:
NO
result:
ok OK there's no successful strategy for Ankica
Test #8:
score: 6
Acceptable Answer
time: 0ms
memory: 3664kb
input:
7 6 1 2 2 3 1 4 4 5 1 6 6 7
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #9:
score: 0
Wrong Answer
time: 0ms
memory: 3584kb
input:
10 9 1 2 2 3 3 4 1 5 5 6 6 7 1 8 8 9 9 10
output:
YES 0
result:
wrong answer incorrect output. expected No Solution.
Subtask #2:
score: 4
Acceptable Answer
Test #65:
score: 4
Acceptable Answer
time: 0ms
memory: 3664kb
input:
1 0
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #66:
score: 4
Acceptable Answer
time: 0ms
memory: 3568kb
input:
2 1 1 2
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #67:
score: 4
Acceptable Answer
time: 0ms
memory: 3668kb
input:
3 2 1 2 2 3
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #68:
score: 4
Acceptable Answer
time: 0ms
memory: 3660kb
input:
4 3 1 2 2 3 3 4
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #69:
score: 4
Acceptable Answer
time: 0ms
memory: 3708kb
input:
5 4 1 2 2 3 3 4 4 5
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #70:
score: 4
Acceptable Answer
time: 0ms
memory: 3668kb
input:
6 5 1 2 2 3 3 4 4 5 5 6
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #71:
score: 4
Acceptable Answer
time: 0ms
memory: 3664kb
input:
7 6 1 2 2 3 3 4 4 5 5 6 6 7
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #72:
score: 4
Acceptable Answer
time: 0ms
memory: 3648kb
input:
8 7 1 2 2 3 3 4 4 5 5 6 6 7 7 8
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #73:
score: 4
Acceptable Answer
time: 0ms
memory: 3596kb
input:
9 8 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #74:
score: 4
Acceptable Answer
time: 0ms
memory: 3664kb
input:
10 9 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #75:
score: 4
Acceptable Answer
time: 0ms
memory: 3720kb
input:
944 943 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 ...
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #76:
score: 4
Acceptable Answer
time: 0ms
memory: 3652kb
input:
515 514 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 ...
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #77:
score: 4
Acceptable Answer
time: 0ms
memory: 3652kb
input:
608 607 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 ...
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #78:
score: 4
Acceptable Answer
time: 0ms
memory: 3584kb
input:
642 641 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 ...
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #79:
score: 4
Acceptable Answer
time: 0ms
memory: 3664kb
input:
681 680 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 ...
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #80:
score: 4
Acceptable Answer
time: 0ms
memory: 3600kb
input:
996 995 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 ...
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #81:
score: 4
Acceptable Answer
time: 0ms
memory: 3652kb
input:
997 996 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 ...
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #82:
score: 4
Acceptable Answer
time: 0ms
memory: 3716kb
input:
998 997 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 ...
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #83:
score: 4
Acceptable Answer
time: 0ms
memory: 3600kb
input:
999 998 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 ...
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #84:
score: 4
Acceptable Answer
time: 0ms
memory: 3584kb
input:
1000 999 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52...
output:
YES 0
result:
points 0.50 correct token but invalid plan
Subtask #3:
score: 0
Wrong Answer
Test #85:
score: 40
Acceptable Answer
time: 0ms
memory: 3672kb
input:
1 0
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #86:
score: 40
Acceptable Answer
time: 0ms
memory: 3712kb
input:
2 1 1 2
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #87:
score: 40
Acceptable Answer
time: 0ms
memory: 3600kb
input:
5 4 1 2 2 3 3 4 4 5
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #88:
score: 40
Acceptable Answer
time: 0ms
memory: 3592kb
input:
6 5 1 2 2 3 3 4 4 5 5 6
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #89:
score: 40
Acceptable Answer
time: 0ms
memory: 3716kb
input:
4 3 1 2 1 3 1 4
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #90:
score: 40
Acceptable Answer
time: 0ms
memory: 3588kb
input:
7 6 1 2 1 3 1 4 1 5 5 6 5 7
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #91:
score: 80
Accepted
time: 0ms
memory: 3588kb
input:
3 3 1 2 2 3 3 1
output:
NO
result:
ok OK there's no successful strategy for Ankica
Test #92:
score: 40
Acceptable Answer
time: 0ms
memory: 3668kb
input:
7 6 1 2 2 3 1 4 4 5 1 6 6 7
output:
YES 0
result:
points 0.50 correct token but invalid plan
Test #93:
score: 0
Wrong Answer
time: 0ms
memory: 3704kb
input:
10 9 1 2 2 3 3 4 1 5 5 6 6 7 1 8 8 9 9 10
output:
YES 0
result:
wrong answer incorrect output. expected No Solution.