結果
| 問題 | No.632 穴埋め門松列 |
| コンテスト | |
| ユーザー |
brthyyjp
|
| 提出日時 | 2020-08-26 08:35:08 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 1,000 ms |
| コード長 | 434 bytes |
| 記録 | |
| コンパイル時間 | 197 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 53,632 KB |
| 最終ジャッジ日時 | 2026-05-07 04:51:11 |
| 合計ジャッジ時間 | 1,193 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
ソースコード
C = list(map(str, input().split()))
res = ''
import copy
temp = copy.copy(C)
for i, c in enumerate(temp):
if c == '?':
temp[i] = '1'
temp = [int(t) for t in temp]
if temp[1] == max(temp) or temp[1] == min(temp):
res += '1'
temp = copy.copy(C)
for i, c in enumerate(temp):
if c == '?':
temp[i] = '4'
temp = [int(t) for t in temp]
if temp[1] == max(temp) or temp[1] == min(temp):
res += '4'
print(res)
brthyyjp