QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#624411#6110. Squirrel GameDreamAwakingWA 0ms3656kbC++14535b2024-10-09 15:46:592024-10-09 15:47:00

Judging History

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

  • [2024-10-09 15:47:00]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3656kb
  • [2024-10-09 15:46:59]
  • 提交

answer

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

const int maxn=2e5+10;
int x[maxn];

void solve(){
    int n,m,k;
    cin>>m>>n>>k;
    for(int i=1;i<=n;i++) cin>>x[i];
    int sg=0;
    for(int i=n;i>0;i--){
        int tmp=x[i]-x[i-1]-1;
        if((i/k)%2==1) sg=sg^tmp;
    }
    if(sg) cout<<"Twinkle";
    else cout<<"Nova";
}

int main(){
    std::ios::sync_with_stdio(false);
    cin.tie(0);cout.tie(0);
    int t;
    t=1;
    while(t--){
        solve();
    }
    return 0;
}

詳細信息

Test #1:

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

input:

7 3 2
1 4 7

output:

Nova

result:

ok single line: 'Nova'

Test #2:

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

input:

7 3 1
1 4 7

output:

Twinkle

result:

ok single line: 'Twinkle'

Test #3:

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

input:

1 1 1
1

output:

Nova

result:

ok single line: 'Nova'

Test #4:

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

input:

1 1 10
1

output:

Nova

result:

ok single line: 'Nova'

Test #5:

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

input:

100000 1 1
19593

output:

Twinkle

result:

ok single line: 'Twinkle'

Test #6:

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

input:

100000 1 10
62516

output:

Nova

result:

wrong answer 1st lines differ - expected: 'Twinkle', found: 'Nova'