結果

問題 No.2247 01 ZigZag
ユーザー ああいいああいい
提出日時 2023-04-25 11:01:19
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 464 bytes
コンパイル時間 482 ms
コンパイル使用メモリ 82,308 KB
実行使用メモリ 55,056 KB
最終ジャッジ日時 2024-04-26 17:33:59
合計ジャッジ時間 3,761 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 38 ms
51,640 KB
testcase_02 AC 38 ms
52,172 KB
testcase_03 WA -
testcase_04 AC 38 ms
52,812 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 37 ms
52,404 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 37 ms
52,304 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 38 ms
51,840 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 38 ms
51,868 KB
testcase_19 AC 38 ms
53,560 KB
testcase_20 AC 37 ms
51,960 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 37 ms
52,404 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 38 ms
52,560 KB
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 37 ms
52,952 KB
testcase_42 AC 37 ms
52,124 KB
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 WA -
testcase_47 AC 38 ms
52,012 KB
testcase_48 AC 38 ms
53,056 KB
testcase_49 WA -
testcase_50 WA -
testcase_51 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

import sys

if N >= (K + 1) // 2 and M >= (K + 0) // 2:
	n = (K + 1) // 2
	m = (K + 0) // 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 + 0) // 2 and M >= (K + 1) // 2:
	n = (K + 0) // 2
	m = (K + 1) // 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