結果
問題 | No.751 Frac #2 |
ユーザー | NoaSaber |
提出日時 | 2021-04-03 18:36:01 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 291 bytes |
コンパイル時間 | 248 ms |
コンパイル使用メモリ | 86,656 KB |
実行使用メモリ | 71,308 KB |
最終ジャッジ日時 | 2023-08-26 14:00:55 |
合計ジャッジ時間 | 4,305 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 61 ms
71,280 KB |
testcase_01 | AC | 62 ms
71,304 KB |
testcase_02 | WA | - |
testcase_03 | AC | 62 ms
71,288 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | AC | 65 ms
71,140 KB |
testcase_09 | AC | 63 ms
70,960 KB |
testcase_10 | WA | - |
testcase_11 | AC | 63 ms
71,200 KB |
testcase_12 | AC | 66 ms
71,012 KB |
testcase_13 | AC | 62 ms
71,184 KB |
testcase_14 | WA | - |
testcase_15 | AC | 63 ms
70,792 KB |
testcase_16 | AC | 64 ms
71,188 KB |
testcase_17 | WA | - |
testcase_18 | AC | 62 ms
71,176 KB |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | AC | 62 ms
71,160 KB |
testcase_22 | WA | - |
testcase_23 | AC | 63 ms
71,132 KB |
testcase_24 | AC | 62 ms
71,136 KB |
testcase_25 | AC | 63 ms
71,196 KB |
testcase_26 | WA | - |
testcase_27 | AC | 64 ms
71,192 KB |
testcase_28 | WA | - |
testcase_29 | AC | 62 ms
71,008 KB |
testcase_30 | WA | - |
testcase_31 | AC | 61 ms
71,056 KB |
testcase_32 | AC | 61 ms
70,912 KB |
testcase_33 | WA | - |
testcase_34 | WA | - |
testcase_35 | WA | - |
testcase_36 | WA | - |
testcase_37 | AC | 62 ms
70,948 KB |
ソースコード
n_1=int(input()) A=list(map(int,input().split())) n_2=int(input()) B=list(map(int,input().split())) up,down=A[0],1 A=A[1:] import math for i in A: down*=i for i,j in enumerate(B): if i%2==0: down*=j else: up*=j print(up//math.gcd(up,down),down//math.gcd(up,down))