結果
| 問題 |
No.339 何人が回答したのか
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-01-29 22:30:40 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 85 bytes |
| コンパイル時間 | 40 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-09-21 17:59:31 |
| 合計ジャッジ時間 | 7,336 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 1 WA * 60 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n Syntax OK
ソースコード
n=gets.to_i
a=[]
while cin=gets
a+=[cin.to_i]
end
p a.inject(100){|s,r| s.gcd(r)}