結果

問題 No.2247 01 ZigZag
ユーザー missosiru
提出日時 2023-03-17 22:51:22
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 1,557 bytes
コンパイル時間 343 ms
コンパイル使用メモリ 82,728 KB
実行使用メモリ 103,196 KB
最終ジャッジ日時 2024-09-18 11:59:16
合計ジャッジ時間 6,852 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 16 WA * 34
権限があれば一括ダウンロードができます

ソースコード

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