結果

問題 No.632 穴埋め門松列
ユーザー OhnumaOhnuma
提出日時 2020-04-09 11:01:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 16 ms / 1,000 ms
コード長 292 bytes
コンパイル時間 797 ms
コンパイル使用メモリ 10,640 KB
実行使用メモリ 7,876 KB
最終ジャッジ日時 2023-09-29 02:01:37
合計ジャッジ時間 834 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,868 KB
testcase_01 AC 16 ms
7,696 KB
testcase_02 AC 16 ms
7,876 KB
testcase_03 AC 16 ms
7,832 KB
testcase_04 AC 16 ms
7,860 KB
testcase_05 AC 16 ms
7,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

l = list(map(str, input().split()))
x, y = [], []
for c in l:
    if c!='?':
        x.append(int(c))
        y.append(int(c))
    else:
        x.append(1)
        y.append(4)
ret = ''
if min(x)==x[1] or max(x)==x[1]:
    ret += '1'
if min(y)==y[1] or max(y)==y[1]:
    ret += '4'
print(ret)
0