結果

問題 No.2247 01 ZigZag
コンテスト
ユーザー タコイモ
提出日時 2023-03-17 22:18:41
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 796 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 301 ms
コンパイル使用メモリ 84,864 KB
実行使用メモリ 54,784 KB
最終ジャッジ日時 2026-04-06 16:10:39
合計ジャッジ時間 3,075 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 33 WA * 17
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys
#sys.setrecursionlimit(500000)
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int,sys.stdin.readline().rstrip().split())
def TI(): return tuple(map(int,sys.stdin.readline().rstrip().split()))
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def SI(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip())
#for i, pi in enumerate(p):
from collections import defaultdict,deque
import bisect
import itertools
dic = defaultdict(int)
d = deque()
YN = ['No','Yes']
N,M,K = LI()

if K % 2:
  s = K // 2
  if N < s or M < s:
    print(-1)
    exit()
  print('0'*(N-s)+'10'*(s)+'1'*(M-s))
else:
  N -= 1
  K -= 1
  s = K//2
  if N < s or M < s:
    print(-1)
    exit()
  print('0'*(N-s)+'10'*(s)+'1'*(M-s)+'0')
0