QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#81829#5574. Julienne the Decklc174#WA 1ms1736kbC++14322b2023-02-26 14:23:572023-02-26 14:24:01

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-02-26 14:24:01]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:1736kb
  • [2023-02-26 14:23:57]
  • 提交

answer


//#pragma GCC optimize(2)
#include<cstdio>
using namespace std;
inline int read(){
	int x,ch;while((ch=getchar())<48||57<ch);
	x=ch^48;while(47<(ch=getchar())&&ch<58)x=x*10+(ch^48);
	return x;
}

long long n;

int main(){
	scanf("%lld",&n);
	if(n>2)printf("%lld",2ll*n%998244353ll);else printf("%lld",n);
}

详细

Test #1:

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

input:

1

output:

1

result:

ok 1 number(s): "1"

Test #2:

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

input:

1000000000000

output:

516560941

result:

ok 1 number(s): "516560941"

Test #3:

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

input:

3

output:

6

result:

ok 1 number(s): "6"

Test #4:

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

input:

4

output:

8

result:

ok 1 number(s): "8"

Test #5:

score: -100
Wrong Answer
time: 1ms
memory: 1500kb

input:

2

output:

2

result:

wrong answer 1st numbers differ - expected: '1', found: '2'