結果
| 問題 | 
                            No.280 歯車の問題(1)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2015-09-19 10:45:13 | 
| 言語 | Python2  (2.7.18)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                            (最新)
                                AC
                                 
                             
                            (最初)
                            
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 304 bytes | 
| コンパイル時間 | 249 ms | 
| コンパイル使用メモリ | 6,912 KB | 
| 実行使用メモリ | 8,064 KB | 
| 最終ジャッジ日時 | 2024-07-19 07:53:26 | 
| 合計ジャッジ時間 | 3,568 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 30 WA * 1 | 
ソースコード
#!/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()))))