結果

問題 No.1501 酔歩
ユーザー 遭難者遭難者
提出日時 2021-05-07 13:18:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 270 bytes
コンパイル時間 137 ms
コンパイル使用メモリ 10,680 KB
実行使用メモリ 16,304 KB
最終ジャッジ日時 2023-10-13 04:12:22
合計ジャッジ時間 5,247 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,960 KB
testcase_01 WA -
testcase_02 AC 16 ms
8,052 KB
testcase_03 AC 16 ms
7,980 KB
testcase_04 RE -
testcase_05 AC 62 ms
9,984 KB
testcase_06 AC 52 ms
9,592 KB
testcase_07 AC 58 ms
9,948 KB
testcase_08 AC 29 ms
8,860 KB
testcase_09 AC 52 ms
9,976 KB
testcase_10 AC 35 ms
8,804 KB
testcase_11 AC 46 ms
9,560 KB
testcase_12 AC 47 ms
9,248 KB
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 AC 80 ms
10,728 KB
testcase_23 AC 72 ms
10,636 KB
testcase_24 AC 78 ms
10,820 KB
testcase_25 AC 82 ms
10,656 KB
testcase_26 AC 91 ms
10,816 KB
testcase_27 AC 81 ms
10,796 KB
testcase_28 AC 71 ms
10,624 KB
testcase_29 AC 88 ms
10,620 KB
testcase_30 AC 65 ms
10,764 KB
testcase_31 AC 87 ms
10,800 KB
testcase_32 AC 84 ms
10,624 KB
testcase_33 AC 74 ms
10,616 KB
testcase_34 AC 78 ms
10,676 KB
testcase_35 AC 83 ms
10,744 KB
testcase_36 AC 76 ms
10,768 KB
testcase_37 AC 87 ms
10,756 KB
testcase_38 AC 84 ms
10,736 KB
testcase_39 AC 67 ms
10,764 KB
testcase_40 AC 85 ms
10,760 KB
testcase_41 AC 73 ms
10,812 KB
testcase_42 AC 97 ms
16,304 KB
testcase_43 RE -
testcase_44 RE -
testcase_45 AC 79 ms
10,016 KB
testcase_46 AC 70 ms
10,196 KB
testcase_47 AC 93 ms
10,036 KB
testcase_48 AC 95 ms
13,016 KB
testcase_49 AC 78 ms
13,124 KB
testcase_50 AC 91 ms
13,136 KB
testcase_51 AC 93 ms
13,000 KB
testcase_52 AC 94 ms
13,096 KB
testcase_53 RE -
testcase_54 AC 17 ms
7,888 KB
testcase_55 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
n, k = map(int,input().split())
a = list(map(int,input().split()))
l = 6350400
p = q = 0
for i in range(k - 1):
  p += l // (a[i] * a[i + 1])
for i in range(n - 1):
  q += l // (a[i] * a[i + 1])
l = math.gcd(p, q)
p //= l
q //= l
print(str(p) + '/' + str(q))
0