QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#95091#5574. Julienne the DeckSEM_PRESSAO_pedroteosousa#WA 2ms3568kbC++14216b2023-04-09 03:03:092023-04-09 03:03:10

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-04-09 03:03:10]
  • 评测
  • 测评结果:WA
  • 用时:2ms
  • 内存:3568kb
  • [2023-04-09 03:03:09]
  • 提交

answer

#include <bits/stdc++.h>
#define mod 998244353
#define ll long long
using namespace std;

main(){

	ll n;
	scanf("%lld",&n);
	
	if(n == 1){
		printf("1\n");
	}
	else
		printf("%lld\n",(2*n)%mod);
		
}

詳細信息

Test #1:

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

input:

1

output:

1

result:

ok 1 number(s): "1"

Test #2:

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

input:

1000000000000

output:

516560941

result:

ok 1 number(s): "516560941"

Test #3:

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

input:

3

output:

6

result:

ok 1 number(s): "6"

Test #4:

score: 0
Accepted
time: 2ms
memory: 3532kb

input:

4

output:

8

result:

ok 1 number(s): "8"

Test #5:

score: -100
Wrong Answer
time: 0ms
memory: 3536kb

input:

2

output:

4

result:

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