結果
問題 |
No.632 穴埋め門松列
|
ユーザー |
![]() |
提出日時 | 2018-02-26 21:11:18 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 324 bytes |
コンパイル時間 | 166 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-24 19:04:40 |
合計ジャッジ時間 | 812 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 6 |
ソースコード
a, b, c = map(str, input().split()) a_list = [a,b,c] index = a_list.index("?") del a_list[index] new_list = [int(i) for i in a_list] max_number = max(new_list) min_number = min(new_list) if max_number - min_number == 2: print(int((max_number+min_number)/2)) else: A = str(max_number+1)+str(min_number-1) print(A)