結果
| 問題 |
No.750 Frac #1
|
| コンテスト | |
| ユーザー |
Ytz_Ichi
|
| 提出日時 | 2020-02-22 02:40:29 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 239 bytes |
| コンパイル時間 | 262 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,520 KB |
| 最終ジャッジ日時 | 2024-10-09 13:16:11 |
| 合計ジャッジ時間 | 2,539 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 22 WA * 8 |
ソースコード
from fractions import Fraction
n = int(input())
string_list = [Fraction(input().replace(" ", "/")) for i in range(n)]
string_list.sort(reverse=True)
for i in range(n):
print(f"{string_list[i].numerator} {string_list[i].denominator}")
Ytz_Ichi