結果
| 問題 |
No.851 テストケース
|
| コンテスト | |
| ユーザー |
chocorusk
|
| 提出日時 | 2019-07-26 22:13:49 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 3,153 ms |
| コード長 | 231 bytes |
| コンパイル時間 | 166 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-07-02 07:35:16 |
| 合計ジャッジ時間 | 1,493 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
import sys
n=int(input())
a=input()
for c in a:
if c<'0' or c>'9':
print("\"assert\"")
sys.exit()
a1=int(a)
a2=int(input())
a3=int(input())
x=[a1+a2, a2+a3, a3+a1]
x.sort()
if x[1]==x[2]:
print(x[0])
else:
print(x[1])
chocorusk