結果

問題 No.2247 01 ZigZag
ユーザー missosirumissosiru
提出日時 2023-03-17 22:51:22
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 1,557 bytes
コンパイル時間 247 ms
コンパイル使用メモリ 81,476 KB
実行使用メモリ 102,228 KB
最終ジャッジ日時 2023-10-18 15:51:59
合計ジャッジ時間 6,400 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,380 KB
testcase_01 AC 37 ms
53,380 KB
testcase_02 AC 36 ms
53,380 KB
testcase_03 WA -
testcase_04 AC 37 ms
53,380 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 37 ms
53,380 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 442 ms
95,768 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 38 ms
53,380 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 38 ms
53,380 KB
testcase_19 AC 37 ms
53,380 KB
testcase_20 AC 37 ms
53,380 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 36 ms
53,380 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 37 ms
53,380 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 AC 37 ms
53,380 KB
testcase_41 WA -
testcase_42 AC 38 ms
53,380 KB
testcase_43 WA -
testcase_44 AC 39 ms
53,380 KB
testcase_45 WA -
testcase_46 WA -
testcase_47 AC 37 ms
53,380 KB
testcase_48 WA -
testcase_49 AC 37 ms
53,380 KB
testcase_50 WA -
testcase_51 AC 39 ms
53,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#pypy3の再帰速度向上
# import pypyjit
# pypyjit.set_param('max_unroll_recursion=-1')
 
#再帰回数の上限を上げる
# import sys
# sys.setrecursionlimit(10**8)
 
#両端キューの宣言
# from collections import deque
# d = deque()
 
#メモ化再帰(再帰する関数の上にデコレータを配置)
# from functools import lru_cache
# @lru_cache(maxsize = 1000000000000000000)

 
#頻出辞書用ライブラリ
# from collections import defaultdict
# di = defaultdict(int)

# コピーライブラリ
# import copy
# a = copy.copy(b)

# INF = float('inf')
# abc = "abcdefghijklmnopqrstuvwxyz"
# ABC = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"

def iinput(): return int(input())
def sinput(): return input().rstrip()
def i0input(): return int(input()) - 1
def linput(): return list(input().split())
def liinput(): return list(map(int, input().split()))
def miinput(): return map(int, input().split())
def li0input(): return list(map(lambda x: int(x) - 1, input().split()))
def mi0input(): return map(lambda x: int(x) - 1, input().split())

# Write code here.---------------------------------------------------------------------------------------

N,M,K = miinput()
if min(N,K) < K:
    print(-1)
    exit()
if N == 0:
    if K == 0:
        print("1"*M)
        exit()
    else:
        print(-1)
        exit()

ans = "0" * (N-(K-1))
n = N - (K-1)
m = M
k = K
s = "0"

for _ in range((N + M) - (N - (K-1))):
    if k == 0:
        print(-1)
        exit()
    if s == "0":
        s = "1"
    else:
        s = "0"
    ans += s
    k -= 1
print(ans)
0