QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#361817#8508. DiviDueloucup-team2443#WA 3ms67052kbC++20780b2024-03-23 13:20:302024-03-23 13:20:30

Judging History

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

  • [2024-03-23 13:20:30]
  • 评测
  • 测评结果:WA
  • 用时:3ms
  • 内存:67052kb
  • [2024-03-23 13:20:30]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N=1919810;
ll n,m,k;
int a[N],b[N];
int cnt[N];

ll ans;
string s[N];

int dp[N][3];//选了前i个 现在有j个连续辅音

map<char,int> mp;

stack<int> st1,st2;

int tf[N];

int gao(string s){
    int sum=0;
    for(int i=0;i<s.size();i++){
        int t=s[i]-'0';
        sum=sum*10+t;
    }
    return sum;
}

bool isprime(ll x){
    if(x==2) return true;
    for(ll i=2;i<=x/i;i++){
        if(x%i==0) return false;
    }
    return true;
}

void __(){
    cin>>n;
    int t=(n-1)%10;
    if(t==1||(t>=5&&t<=9)) puts("N");
    else puts("Y");
}

int main()
{
    
    int _=1;
    // cin>>_;
    while(_--){
        __();
    }
}
//NYYYNNNNNYN

详细

Test #1:

score: 0
Wrong Answer
time: 3ms
memory: 67052kb

input:

10

output:

N

result:

wrong answer 1st words differ - expected: 'Y', found: 'N'