結果

問題 No.2247 01 ZigZag
ユーザー ああいいああいい
提出日時 2023-04-25 10:58:07
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 544 bytes
コンパイル時間 379 ms
コンパイル使用メモリ 81,820 KB
実行使用メモリ 53,956 KB
最終ジャッジ日時 2024-04-26 17:32:28
合計ジャッジ時間 3,851 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,104 KB
testcase_01 AC 36 ms
53,344 KB
testcase_02 AC 37 ms
53,344 KB
testcase_03 AC 37 ms
52,440 KB
testcase_04 AC 38 ms
51,924 KB
testcase_05 AC 37 ms
52,220 KB
testcase_06 AC 37 ms
53,680 KB
testcase_07 AC 38 ms
52,084 KB
testcase_08 AC 37 ms
52,448 KB
testcase_09 AC 37 ms
52,172 KB
testcase_10 AC 37 ms
52,696 KB
testcase_11 AC 38 ms
53,380 KB
testcase_12 AC 37 ms
52,596 KB
testcase_13 AC 37 ms
53,060 KB
testcase_14 AC 36 ms
52,252 KB
testcase_15 AC 37 ms
52,224 KB
testcase_16 AC 37 ms
53,320 KB
testcase_17 AC 37 ms
53,032 KB
testcase_18 AC 37 ms
52,280 KB
testcase_19 AC 36 ms
52,284 KB
testcase_20 AC 37 ms
52,372 KB
testcase_21 AC 37 ms
52,112 KB
testcase_22 AC 37 ms
53,804 KB
testcase_23 AC 38 ms
52,080 KB
testcase_24 AC 38 ms
52,032 KB
testcase_25 AC 37 ms
52,464 KB
testcase_26 AC 38 ms
52,272 KB
testcase_27 AC 37 ms
52,328 KB
testcase_28 AC 39 ms
53,956 KB
testcase_29 AC 38 ms
53,256 KB
testcase_30 AC 37 ms
53,912 KB
testcase_31 AC 37 ms
51,808 KB
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 36 ms
52,952 KB
testcase_38 WA -
testcase_39 WA -
testcase_40 AC 38 ms
53,672 KB
testcase_41 AC 38 ms
53,696 KB
testcase_42 AC 37 ms
53,068 KB
testcase_43 AC 37 ms
53,276 KB
testcase_44 AC 38 ms
51,976 KB
testcase_45 AC 38 ms
53,548 KB
testcase_46 AC 36 ms
53,656 KB
testcase_47 AC 39 ms
52,080 KB
testcase_48 AC 37 ms
53,008 KB
testcase_49 AC 37 ms
52,640 KB
testcase_50 AC 37 ms
52,880 KB
testcase_51 AC 38 ms
52,672 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M,K = map(int,input().split())

import sys
if K == 0:
	if N * M == 0:
		print("0"* N + "1" * M)
	else:
		print(-1)
	exit()

if N >= (K + 2) // 2 and M >= (K + 1) // 2:
	n = (K + 2) // 2
	m = (K + 1) // 2
	S = "01" * m
	if n > m:
		ans = "0" *(N - n) + S + "1" * (M - m) + "0"
	else:
		ans = "0" * (N - n) + S + "1" * (M - m)
	print(ans)
elif N >= (K + 1) // 2 and M >= (K + 2) // 2:
	n = (K + 1) // 2
	m = (K + 2) // 2
	S = "10" * n
	if m > n:
		ans = S + "1" * (M - m)
	else:
		ans = S[:-1] + "1" * (M - m) + "0"
	print(ans)
else:
	print(-1)
0