QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#435163#8788. Page on vdome.comucup-team3651#AC ✓1ms3692kbC++20416b2024-06-08 19:09:292024-06-08 19:09:29

Judging History

你现在查看的是最新测评结果

  • [2024-06-08 19:09:29]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3692kb
  • [2024-06-08 19:09:29]
  • 提交

answer

#include<bits/stdc++.h>
#define ll long long
using namespace std;
int read(){
	int x=0,f=1;char ch=getchar();
	while(ch<'0' || ch>'9')f=(ch=='-'?-1:1),ch=getchar();
	while(ch>='0' && ch<='9')x=(x<<1)+(x<<3)+(ch^48),ch=getchar();
	return x*f;
}
void write(int x){
	if(x<0)x=-x,putchar('-');
	if(x/10)write(x/10);
	putchar(x%10+'0');
}
int main(){
	int n=read();
	if(n<=9)cout<<n+1;
	else cout<<10;
}

这程序好像有点Bug,我给组数据试试?

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3584kb

input:

5

output:

6

result:

ok 1 number(s): "6"

Test #2:

score: 0
Accepted
time: 0ms
memory: 3680kb

input:

10

output:

10

result:

ok 1 number(s): "10"

Test #3:

score: 0
Accepted
time: 0ms
memory: 3572kb

input:

9

output:

10

result:

ok 1 number(s): "10"

Test #4:

score: 0
Accepted
time: 0ms
memory: 3688kb

input:

1

output:

2

result:

ok 1 number(s): "2"

Test #5:

score: 0
Accepted
time: 0ms
memory: 3596kb

input:

2

output:

3

result:

ok 1 number(s): "3"

Test #6:

score: 0
Accepted
time: 0ms
memory: 3612kb

input:

4

output:

5

result:

ok 1 number(s): "5"

Test #7:

score: 0
Accepted
time: 1ms
memory: 3680kb

input:

11

output:

10

result:

ok 1 number(s): "10"

Test #8:

score: 0
Accepted
time: 0ms
memory: 3612kb

input:

19

output:

10

result:

ok 1 number(s): "10"

Test #9:

score: 0
Accepted
time: 0ms
memory: 3620kb

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: 3588kb

input:

100

output:

10

result:

ok 1 number(s): "10"

Test #12:

score: 0
Accepted
time: 0ms
memory: 3588kb

input:

101

output:

10

result:

ok 1 number(s): "10"

Test #13:

score: 0
Accepted
time: 0ms
memory: 3516kb

input:

110

output:

10

result:

ok 1 number(s): "10"

Test #14:

score: 0
Accepted
time: 0ms
memory: 3612kb

input:

12345

output:

10

result:

ok 1 number(s): "10"

Test #15:

score: 0
Accepted
time: 0ms
memory: 3516kb

input:

123456789

output:

10

result:

ok 1 number(s): "10"

Test #16:

score: 0
Accepted
time: 1ms
memory: 3692kb

input:

584392706

output:

10

result:

ok 1 number(s): "10"

Test #17:

score: 0
Accepted
time: 0ms
memory: 3572kb

input:

987654321

output:

10

result:

ok 1 number(s): "10"

Test #18:

score: 0
Accepted
time: 0ms
memory: 3560kb

input:

1000000000

output:

10

result:

ok 1 number(s): "10"

Extra Test:

score: 0
Extra Test Passed