結果
問題 | No.1931 Fraction 2 |
ユーザー | nok0 |
提出日時 | 2022-05-06 21:33:50 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 206 bytes |
コンパイル時間 | 391 ms |
コンパイル使用メモリ | 87,244 KB |
実行使用メモリ | 98,360 KB |
最終ジャッジ日時 | 2023-09-20 22:30:45 |
合計ジャッジ時間 | 8,784 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 224 ms
89,208 KB |
testcase_01 | AC | 225 ms
89,012 KB |
testcase_02 | AC | 228 ms
88,940 KB |
testcase_03 | AC | 250 ms
89,164 KB |
testcase_04 | AC | 253 ms
89,512 KB |
testcase_05 | AC | 244 ms
89,108 KB |
testcase_06 | AC | 274 ms
90,328 KB |
testcase_07 | AC | 245 ms
89,220 KB |
testcase_08 | AC | 235 ms
89,200 KB |
testcase_09 | AC | 250 ms
89,272 KB |
testcase_10 | AC | 229 ms
89,080 KB |
testcase_11 | AC | 245 ms
89,156 KB |
testcase_12 | AC | 232 ms
89,256 KB |
testcase_13 | TLE | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
testcase_24 | -- | - |
testcase_25 | -- | - |
testcase_26 | -- | - |
testcase_27 | -- | - |
testcase_28 | -- | - |
testcase_29 | -- | - |
testcase_30 | -- | - |
testcase_31 | -- | - |
testcase_32 | -- | - |
testcase_33 | -- | - |
testcase_34 | -- | - |
testcase_35 | -- | - |
testcase_36 | -- | - |
testcase_37 | -- | - |
testcase_38 | -- | - |
ソースコード
from fractions import Fraction n = int(input()) x = Fraction(0, 1) for i in range(n): a, b = map(int, input().split()) x += Fraction(a, b) print(x.numerator % 998244353, x.denominator % 998244353)