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