QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#624016#6110. Squirrel GameDreamAwakingWA 1ms3780kbC++14610b2024-10-09 14:42:322024-10-09 14:42:34

Judging History

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

  • [2024-10-09 14:42:34]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3780kb
  • [2024-10-09 14:42:32]
  • 提交

answer

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

void solve(){
    ll n,m,k;
    cin>>n>>m>>k;
    ll sum=0;
    vector<int> v;
    for(int i=0;i<n;i++){
        int num;
        cin>>num;
        v.push_back(num);
    }
    for(int i=1;i<n;i++){
        sum+=v[i]-v[i-1];
    }
    ll cnt=min(sum,k);
    if(cnt%2==0){
        cout<<"Nova"<<'\n';
    }
    else{
        cout<<"Twinkle"<<'\n';
    }
}

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

input:

7 3 2
1 4 7

output:

Nova

result:

ok single line: 'Nova'

Test #2:

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

input:

7 3 1
1 4 7

output:

Twinkle

result:

ok single line: 'Twinkle'

Test #3:

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

input:

1 1 1
1

output:

Nova

result:

ok single line: 'Nova'

Test #4:

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

input:

1 1 10
1

output:

Nova

result:

ok single line: 'Nova'

Test #5:

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

input:

100000 1 1
19593

output:

Nova

result:

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