結果
| 問題 |
No.1230 Hall_and_me
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-18 22:40:50 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 306 bytes |
| コンパイル時間 | 456 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 11,648 KB |
| 最終ジャッジ日時 | 2024-06-22 10:06:36 |
| 合計ジャッジ時間 | 2,815 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 3 WA * 33 |
ソースコード
from fractions import Fraction
from sys import stdin
def main():
input = lambda: stdin.readline()[:-1]
P, Q, R = map(int, input().split())
d = P + Q + R
p1 = max(P, Q, R)
p2 = sum([P, Q, R]) - p1
ans = Fraction(max(p1, p2), d)
print(ans.numerator / ans.denominator)
main()