結果

問題 No.1137 Circles
ユーザー 👑 hos.lyrichos.lyric
提出日時 2020-07-30 02:12:44
言語 Ruby
(3.3.0)
結果
AC  
実行時間 297 ms / 2,000 ms
コード長 113 bytes
コンパイル時間 252 ms
コンパイル使用メモリ 11,200 KB
実行使用メモリ 27,752 KB
最終ジャッジ日時 2023-09-13 18:14:12
合計ジャッジ時間 7,349 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 160 ms
27,676 KB
testcase_01 AC 284 ms
27,584 KB
testcase_02 AC 166 ms
27,524 KB
testcase_03 AC 220 ms
27,700 KB
testcase_04 AC 251 ms
27,444 KB
testcase_05 AC 179 ms
27,448 KB
testcase_06 AC 261 ms
27,444 KB
testcase_07 AC 212 ms
27,528 KB
testcase_08 AC 271 ms
27,668 KB
testcase_09 AC 195 ms
27,640 KB
testcase_10 AC 214 ms
27,548 KB
testcase_11 AC 222 ms
27,560 KB
testcase_12 AC 297 ms
27,476 KB
testcase_13 AC 195 ms
27,524 KB
testcase_14 AC 289 ms
27,512 KB
testcase_15 AC 200 ms
27,656 KB
testcase_16 AC 222 ms
27,656 KB
testcase_17 AC 172 ms
27,560 KB
testcase_18 AC 265 ms
27,488 KB
testcase_19 AC 199 ms
27,636 KB
testcase_20 AC 188 ms
27,520 KB
testcase_21 AC 160 ms
27,752 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

m=9**6
f=[g=z=0]*m*2
gets
$<.map{|s|x,r=s.split.map &:to_i;f[m+x-r]+=1;f[m+x+r]-=1;}
f.each{|t|g+=t;z<g&&z=g}
p z
0