結果

問題 No.2247 01 ZigZag
ユーザー もちふわゆるゆるもちふわゆるゆる
提出日時 2023-03-17 21:51:08
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 583 bytes
コンパイル時間 163 ms
コンパイル使用メモリ 81,824 KB
実行使用メモリ 70,628 KB
最終ジャッジ日時 2023-10-18 14:25:25
合計ジャッジ時間 4,045 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
53,660 KB
testcase_01 AC 39 ms
53,664 KB
testcase_02 AC 50 ms
69,432 KB
testcase_03 AC 49 ms
66,024 KB
testcase_04 AC 47 ms
64,112 KB
testcase_05 AC 43 ms
59,984 KB
testcase_06 AC 45 ms
63,440 KB
testcase_07 AC 43 ms
63,168 KB
testcase_08 AC 47 ms
64,952 KB
testcase_09 AC 49 ms
66,024 KB
testcase_10 AC 46 ms
66,028 KB
testcase_11 AC 45 ms
63,440 KB
testcase_12 AC 43 ms
62,032 KB
testcase_13 AC 44 ms
62,500 KB
testcase_14 AC 44 ms
63,444 KB
testcase_15 AC 43 ms
59,984 KB
testcase_16 AC 44 ms
62,324 KB
testcase_17 AC 51 ms
70,236 KB
testcase_18 AC 49 ms
66,668 KB
testcase_19 AC 50 ms
70,240 KB
testcase_20 AC 46 ms
64,956 KB
testcase_21 AC 43 ms
59,984 KB
testcase_22 AC 47 ms
64,788 KB
testcase_23 AC 45 ms
63,164 KB
testcase_24 AC 48 ms
66,668 KB
testcase_25 AC 47 ms
64,952 KB
testcase_26 AC 46 ms
63,440 KB
testcase_27 AC 42 ms
59,984 KB
testcase_28 AC 50 ms
66,936 KB
testcase_29 AC 50 ms
69,428 KB
testcase_30 AC 48 ms
66,968 KB
testcase_31 AC 44 ms
62,920 KB
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 45 ms
62,500 KB
testcase_38 WA -
testcase_39 WA -
testcase_40 AC 49 ms
70,240 KB
testcase_41 AC 38 ms
53,664 KB
testcase_42 AC 38 ms
53,664 KB
testcase_43 AC 38 ms
53,664 KB
testcase_44 AC 40 ms
53,664 KB
testcase_45 AC 53 ms
70,628 KB
testcase_46 AC 52 ms
70,628 KB
testcase_47 AC 38 ms
53,664 KB
testcase_48 AC 38 ms
53,664 KB
testcase_49 AC 38 ms
53,664 KB
testcase_50 AC 37 ms
53,664 KB
testcase_51 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys, math
input = lambda: sys.stdin.readline()[:-1]
def MI(): return map(int, input().split())
inf = 10**18

n,m,k = MI()

if n==0:
    if k==0:
        print('1'*m)
    else:
        print(-1)
    exit()
if m==0:
    if k==0:
        print('0'*n)
    else:
        print(-1)
    exit()

cnt = [0,0]
ans = []
for i in range(k+1):
    cnt[i%2] += 1
    ans.append(str(i%2))
# print(ans)
# print(cnt)
if cnt[0] > n or cnt[1] > m:
    print(-1); exit()

ans[0] += '0'*(n-cnt[0])
if (k+1)%2==0:
    ans[-1] += '1'*(m-cnt[1])
else:
    ans[-2] += '1'*(m-cnt[1])
print("".join(ans))
0