結果
問題 | No.451 575 |
ユーザー |
![]() |
提出日時 | 2016-12-02 22:36:51 |
言語 | Ruby (3.4.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 321 bytes |
コンパイル時間 | 172 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 68,024 KB |
最終ジャッジ日時 | 2024-12-16 10:42:55 |
合計ジャッジ時間 | 43,268 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 16 WA * 3 TLE * 10 |
コンパイルメッセージ
Main.rb:22: warning: ambiguous first argument; put parentheses or a space even after `-' operator Syntax OK
ソースコード
n=gets.to_ia=[]n.times do |i|a<< gets.to_iendc=0e=0while true dob=[]b<< 1+c(n/2).times do |i|b<< a[i*2]-b[i*2]b<< b[i*2+1]-a[i*2+1]end(n%2).times dob<< a[-1]-b[-1]endif b.all?{|i|i>0}puts n+1,b.*("\n")breakelsif e==100p -1breakendc=0n.times do |i|c+=b[i] if 1>b[i]ende+=1end