結果
問題 | No.1264 010 |
ユーザー |
![]() |
提出日時 | 2020-10-26 02:04:27 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 429 bytes |
コンパイル時間 | 1,529 ms |
コンパイル使用メモリ | 166,904 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-21 21:12:44 |
合計ジャッジ時間 | 3,204 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 1 WA * 8 |
ソースコード
#include<bits/stdc++.h>using namespace std;using ll=long long;#define r1(i,n)for(int i=0;i<(n);i++)#define r2(i,a,n)for(int i=(a);i<(n);i++)int main(){cin.tie(nullptr);ios_base::sync_with_stdio(false);int n;cin>>n;if(n==0)cout<<"1"<<endl;else if(n==1)cout<<"010"<<endl;else if(n>=2){string s="010010";r2(i,3,n){if(i%2==1) s+='0';else s.push_back('0');}cout<<s<<endl;}}