結果

問題 No.280 歯車の問題(1)
ユーザー yuppe19 😺yuppe19 😺
提出日時 2015-09-19 10:45:13
言語 Python2
(2.7.18)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 304 bytes
コンパイル時間 586 ms
コンパイル使用メモリ 6,488 KB
実行使用メモリ 7,788 KB
最終ジャッジ日時 2023-09-26 13:33:02
合計ジャッジ時間 6,128 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
7,784 KB
testcase_01 AC 23 ms
7,740 KB
testcase_02 AC 23 ms
7,788 KB
testcase_03 AC 23 ms
7,628 KB
testcase_04 AC 23 ms
7,580 KB
testcase_05 AC 23 ms
7,624 KB
testcase_06 AC 23 ms
7,632 KB
testcase_07 AC 23 ms
7,748 KB
testcase_08 AC 23 ms
7,712 KB
testcase_09 AC 22 ms
7,628 KB
testcase_10 AC 23 ms
7,768 KB
testcase_11 AC 23 ms
7,632 KB
testcase_12 AC 23 ms
7,736 KB
testcase_13 AC 23 ms
7,604 KB
testcase_14 AC 23 ms
7,636 KB
testcase_15 AC 23 ms
7,788 KB
testcase_16 AC 22 ms
7,628 KB
testcase_17 AC 22 ms
7,720 KB
testcase_18 AC 22 ms
7,724 KB
testcase_19 AC 22 ms
7,780 KB
testcase_20 AC 22 ms
7,720 KB
testcase_21 AC 22 ms
7,632 KB
testcase_22 AC 22 ms
7,784 KB
testcase_23 AC 22 ms
7,572 KB
testcase_24 AC 22 ms
7,636 KB
testcase_25 AC 23 ms
7,752 KB
testcase_26 AC 23 ms
7,628 KB
testcase_27 AC 23 ms
7,572 KB
testcase_28 AC 23 ms
7,636 KB
testcase_29 AC 23 ms
7,628 KB
testcase_30 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python
from fractions import Fraction
from operator import mul
from itertools import izip, tee

def pairwise(iterable):
    a, b = tee(iterable)
    next(b, None)
    return izip(a, b)

raw_input()
print reduce(mul, map(lambda (x, y): Fraction(y, x), pairwise(map(int, raw_input().split()))))
0