結果
問題 |
No.2247 01 ZigZag
|
ユーザー |
![]() |
提出日時 | 2023-03-17 21:39:27 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 236 bytes |
コンパイル時間 | 330 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 60,728 KB |
最終ジャッジ日時 | 2024-09-18 10:28:04 |
合計ジャッジ時間 | 3,869 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 35 WA * 15 |
ソースコード
N,M,K=map(int,input().split()) def cnt(a): return 2*a-1+(1 if M>a else 0)+(1 if N>a else 0) ans=-1 for i in reversed(range(min(N,M)+1)): if cnt(i)==K: ans=i; break if ans==-1: print(ans) else: print('0'*(N-ans)+'10'*ans+'1'*(M-ans))