結果

問題 No.2247 01 ZigZag
ユーザー Eki1009Eki1009
提出日時 2023-03-17 21:35:25
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 317 bytes
コンパイル時間 184 ms
コンパイル使用メモリ 81,624 KB
実行使用メモリ 52,324 KB
最終ジャッジ日時 2023-10-18 14:04:22
合計ジャッジ時間 3,927 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
51,600 KB
testcase_01 AC 37 ms
51,604 KB
testcase_02 AC 37 ms
51,604 KB
testcase_03 WA -
testcase_04 AC 37 ms
51,604 KB
testcase_05 AC 37 ms
51,888 KB
testcase_06 WA -
testcase_07 AC 38 ms
51,596 KB
testcase_08 AC 37 ms
52,020 KB
testcase_09 AC 37 ms
51,960 KB
testcase_10 AC 38 ms
51,596 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 37 ms
51,600 KB
testcase_15 AC 38 ms
51,924 KB
testcase_16 WA -
testcase_17 AC 38 ms
52,112 KB
testcase_18 AC 37 ms
51,604 KB
testcase_19 AC 37 ms
51,604 KB
testcase_20 AC 37 ms
51,600 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 37 ms
51,600 KB
testcase_25 AC 37 ms
52,084 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 38 ms
51,604 KB
testcase_32 AC 37 ms
52,088 KB
testcase_33 AC 37 ms
51,884 KB
testcase_34 AC 37 ms
51,868 KB
testcase_35 AC 37 ms
51,796 KB
testcase_36 AC 38 ms
51,888 KB
testcase_37 AC 38 ms
51,676 KB
testcase_38 AC 38 ms
51,676 KB
testcase_39 AC 37 ms
51,760 KB
testcase_40 AC 37 ms
51,600 KB
testcase_41 AC 37 ms
51,996 KB
testcase_42 AC 37 ms
51,892 KB
testcase_43 AC 37 ms
51,616 KB
testcase_44 AC 37 ms
51,596 KB
testcase_45 WA -
testcase_46 AC 38 ms
52,320 KB
testcase_47 AC 36 ms
51,604 KB
testcase_48 AC 37 ms
51,600 KB
testcase_49 AC 37 ms
51,596 KB
testcase_50 AC 38 ms
51,596 KB
testcase_51 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0