結果

問題 No.280 歯車の問題(1)
コンテスト
ユーザー yuppe19 😺
提出日時 2015-09-19 10:45:13
言語 PyPy2
(7.3.20)
コンパイル:
pypy2 -m py_compile _filename_
実行:
/usr/bin/pypy2 Main.pyc
結果
MLE  
(最新)
AC  
(最初)
実行時間 -
コード長 304 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 71 ms
コンパイル使用メモリ 81,408 KB
実行使用メモリ 95,488 KB
最終ジャッジ日時 2026-07-17 21:34:46
合計ジャッジ時間 6,229 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other MLE * 31
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#!/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