結果
問題 |
No.944 煎っぞ!
|
ユーザー |
👑 |
提出日時 | 2019-12-11 00:46:17 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 522 ms / 3,000 ms |
コード長 | 112 bytes |
コンパイル時間 | 70 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 23,552 KB |
最終ジャッジ日時 | 2024-06-24 06:23:49 |
合計ジャッジ時間 | 8,410 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n Syntax OK
ソースコード
n=gets.to_i s=z=0 f={} gets.split.each{|a|f[s+=a.to_i]=1} 1.upto(s){|r|s%r<1&&(1..r).all?{|j|f[s/r*j]}&&z=r} p z