QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#765364#9579. 比分幻术forget-star#AC ✓0ms1572kbC++14384b2024-11-20 14:03:182024-11-20 14:03:19

Judging History

This is the latest submission verdict.

  • [2024-11-20 14:03:19]
  • Judged
  • Verdict: AC
  • Time: 0ms
  • Memory: 1572kb
  • [2024-11-20 14:03:18]
  • Submitted

answer

#include <cstdio>
#include <cstring>
#include <algorithm>

using namespace std;

int read()
{
	int a = 0,x = 1;char ch = getchar();
	while(ch > '9' || ch < '0') {if(ch == '-') x = -1;ch = getchar();}
	while(ch >='0' && ch <= '9') {a = a*10 + ch-'0';ch = getchar();}
	return a*x;
}
char s[50];
int main()
{
	scanf("%s",s+1);
	reverse(s+1,s+1+3);
	printf("%s",s+1);
}

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

詳細信息

Test #1:

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

input:

2-3

output:

3-2

result:

ok single line: '3-2'

Test #2:

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

input:

8-1

output:

1-8

result:

ok single line: '1-8'

Test #3:

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

input:

6-6

output:

6-6

result:

ok single line: '6-6'

Test #4:

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

input:

0-0

output:

0-0

result:

ok single line: '0-0'

Test #5:

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

input:

9-0

output:

0-9

result:

ok single line: '0-9'

Test #6:

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

input:

3-7

output:

7-3

result:

ok single line: '7-3'

Test #7:

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

input:

5-9

output:

9-5

result:

ok single line: '9-5'

Test #8:

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

input:

0-4

output:

4-0

result:

ok single line: '4-0'

Test #9:

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

input:

9-9

output:

9-9

result:

ok single line: '9-9'

Test #10:

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

input:

0-9

output:

9-0

result:

ok single line: '9-0'

Extra Test:

score: 0
Extra Test Passed