QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#768750#5434. Binary SubstringsFalse0099#WA 0ms3620kbC++20538b2024-11-21 14:14:142024-11-21 14:14:14

Judging History

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

  • [2024-11-21 14:14:14]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3620kb
  • [2024-11-21 14:14:14]
  • 提交

answer

#include <bits/stdc++.h>
#define int long long
#define endl '\n'
int INF=0x3f3f3f3f3f3f3f3f;
using namespace std;
typedef pair<int,int> PII;
void init(){
    
}
void solve(){
    int n;
    cin>>n;
    if(n==1){
        cout<<"0"<<endl;
        return;
    }else{
        cout<<"10";
    }
    for(int i=0;i<n-1;i++){
        cout<<1;
    }  
    cout<<endl;
}
signed main(){
    ios::sync_with_stdio(false),cin.tie(0);
    int t;
    t=1;
//    cin>>t;
    init();
    while(t--){
        solve();
    }
}

詳細信息

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3620kb

input:

2

output:

101

result:

wrong answer Token parameter [name=s] equals to "101", doesn't correspond to pattern "[01]{2}"