結果
問題 | No.1934 Four Fruits |
ユーザー |
|
提出日時 | 2023-05-07 17:44:15 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 254 bytes |
コンパイル時間 | 426 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-24 17:15:04 |
合計ジャッジ時間 | 1,172 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 7 |
ソースコード
ls = sorted(list(map(int,input().split()))) bools = [false for i in range(4)] for i in ls: bools[i] = true lg = bools.count(true) if lg==1: print(ls[0]) elif lg==2: if ls[0]==ls[1]: print(ls[2]) else: print(ls[0]) else: print(bools.index(false))