結果
問題 | No.2247 01 ZigZag |
ユーザー |
![]() |
提出日時 | 2023-05-11 22:52:14 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 373 bytes |
コンパイル時間 | 539 ms |
コンパイル使用メモリ | 63,360 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-27 18:39:35 |
合計ジャッジ時間 | 2,377 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 WA * 40 |
ソースコード
#include <iostream> #define rep(i,n) for(int i = 0;i<n;i++) #define all(x) x.begin(),x.end() #define yesif(x) cout << ((x) ? "Yes": "No") << endl using namespace std; int main() { int n,m,k;cin>>n>>m>>k; if(n+m-1-k >= 0){ cout << string(n+m-1-k,'0') ; rep(i,k) cout << "01"; cout << endl; } else { cout << -1 << endl; } }