QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#433666 | #8788. Page on vdome.com | ucup-team3564# | AC ✓ | 0ms | 3696kb | C++20 | 877b | 2024-06-08 13:09:20 | 2024-06-08 13:09:28 |
Judging History
answer
// MagicDark
#include <bits/stdc++.h>
#define debug cerr << "\033[32m[" << __LINE__ << "]\033[0m "
#define SZ(x) ((int) x.size() - 1)
#define all(x) x.begin(), x.end()
#define ms(x, y) memset(x, y, sizeof x)
#define F(i, x, y) for (int i = (x); i <= (y); i++)
#define DF(i, x, y) for (int i = (x); i >= (y); i--)
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
template <typename T> T& chkmax(T& x, T y) {return x = max(x, y);}
template <typename T> T& chkmin(T& x, T y) {return x = min(x, y);}
template <typename T> T& read(T &x) {
x = 0; int f = 1; char c = getchar();
for (; !isdigit(c); c = getchar()) if (c == '-') f = -f;
for (; isdigit(c); c = getchar()) x = (x << 1) + (x << 3) + (c ^ 48);
return x *= f;
}
signed main() {
int n;
cin >> n;
if (n <= 9) cout << n + 1;
else cout << 10;
return 0;
}
/* why?
*/
这程序好像有点Bug,我给组数据试试?
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3568kb
input:
5
output:
6
result:
ok 1 number(s): "6"
Test #2:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
10
output:
10
result:
ok 1 number(s): "10"
Test #3:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
9
output:
10
result:
ok 1 number(s): "10"
Test #4:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
1
output:
2
result:
ok 1 number(s): "2"
Test #5:
score: 0
Accepted
time: 0ms
memory: 3524kb
input:
2
output:
3
result:
ok 1 number(s): "3"
Test #6:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
4
output:
5
result:
ok 1 number(s): "5"
Test #7:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
11
output:
10
result:
ok 1 number(s): "10"
Test #8:
score: 0
Accepted
time: 0ms
memory: 3692kb
input:
19
output:
10
result:
ok 1 number(s): "10"
Test #9:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
20
output:
10
result:
ok 1 number(s): "10"
Test #10:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
99
output:
10
result:
ok 1 number(s): "10"
Test #11:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
100
output:
10
result:
ok 1 number(s): "10"
Test #12:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
101
output:
10
result:
ok 1 number(s): "10"
Test #13:
score: 0
Accepted
time: 0ms
memory: 3688kb
input:
110
output:
10
result:
ok 1 number(s): "10"
Test #14:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
12345
output:
10
result:
ok 1 number(s): "10"
Test #15:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
123456789
output:
10
result:
ok 1 number(s): "10"
Test #16:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
584392706
output:
10
result:
ok 1 number(s): "10"
Test #17:
score: 0
Accepted
time: 0ms
memory: 3692kb
input:
987654321
output:
10
result:
ok 1 number(s): "10"
Test #18:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
1000000000
output:
10
result:
ok 1 number(s): "10"
Extra Test:
score: 0
Extra Test Passed