結果
問題 |
No.2247 01 ZigZag
|
ユーザー |
![]() |
提出日時 | 2023-03-17 21:35:25 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 317 bytes |
コンパイル時間 | 175 ms |
コンパイル使用メモリ | 82,648 KB |
実行使用メモリ | 54,400 KB |
最終ジャッジ日時 | 2024-09-18 10:23:08 |
合計ジャッジ時間 | 3,618 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 34 WA * 16 |
ソースコード
n,m,k = map(int,input().split()) if k%2: t = (k+1)//2 if n < t or m < t: ans = -1 else: ans = "0"*(n-t)+"01"*t+"1"*(m-t) else: t = k//2 if n >= t+1 and m >= t: ans = "0"*(n-t)+"10"*t+"1"*(m-t) elif n >= t and m >= t+1: ans = "1"+"0"*(n-t)+"01"*t+"1"*(m-t-1) else: ans = -1 print(ans)