結果
問題 |
No.280 歯車の問題(1)
|
ユーザー |
![]() |
提出日時 | 2016-04-15 04:13:53 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 12 ms / 1,000 ms |
コード長 | 136 bytes |
コンパイル時間 | 85 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-04 09:21:11 |
合計ジャッジ時間 | 2,864 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
ソースコード
n=input() z=map(float,raw_input().split()) x=1 for i in range(n-1): x=x*z[i]/z[i+1] #print x print `int(1/x*z[0]+0.5)`+"/"+`int(z[0])`