QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#361642 | #8508. DiviDuelo | ucup-team2443# | WA | 17ms | 69056kb | C++20 | 1.8kb | 2024-03-23 12:20:45 | 2024-03-23 12:20:46 |
Judging History
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;
}
void __(){
cin>>n;
if(n&1) puts("N");
else puts("Y");
// for(int i=1;i<=n*2;i++) cin>>s[i];
// for(int i=1;i<=n*2;i++){
// int num=gao(s[i].substr(1));
// if(s[i][0]=='+'){
// st1.push(num);
// }else{
// if(st1.top()==num){
// tf[num]=1;
// st1.pop();
// continue;
// }
// while(st1.top()!=num){
// st2.push(st1.top());
// st1.pop();
// }
// tf[num]=2;
// st1.pop();
// while(st2.size()){
// st1.push(st2.top());
// st2.pop();
// }
// }
// }
// while(st1.size()) st1.pop();
// while(st2.size()) st2.pop();
// // st1.clear(),st2.clear();
// for(int i=1;i<=n*2;i++){
// int num=gao(s[i].substr(1));
// if(tf[num]==1) continue;
// if(s[i][0]=='+'){
// st1.push(num);
// }else{
// if(st1.top()!=num){
// puts("*");
// return;
// }
// st1.pop();
// }
// }
// for(int i=1;i<=n;i++){
// if(tf[i]==1) printf("G");
// else printf("S");
// }
}
int main()
{
int _=1;
// cin>>_;
while(_--){
__();
}
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 69056kb
input:
10
output:
Y
result:
ok "Y"
Test #2:
score: 0
Accepted
time: 17ms
memory: 67000kb
input:
9
output:
N
result:
ok "N"
Test #3:
score: 0
Accepted
time: 7ms
memory: 67060kb
input:
1
output:
N
result:
ok "N"
Test #4:
score: 0
Accepted
time: 7ms
memory: 67064kb
input:
549755813888
output:
Y
result:
ok "Y"
Test #5:
score: -100
Wrong Answer
time: 7ms
memory: 67080kb
input:
274877906944
output:
Y
result:
wrong answer 1st words differ - expected: 'N', found: 'Y'