結果

問題 No.781 円周上の格子点の数え上げ
ユーザー 👑 hos.lyrichos.lyric
提出日時 2019-01-19 09:18:25
言語 Crystal
(1.11.2)
結果
AC  
実行時間 292 ms / 2,000 ms
コード長 116 bytes
コンパイル時間 18,341 ms
コンパイル使用メモリ 255,360 KB
実行使用メモリ 165,652 KB
最終ジャッジ日時 2023-09-13 09:59:01
合計ジャッジ時間 24,084 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 260 ms
164,736 KB
testcase_01 AC 264 ms
164,728 KB
testcase_02 AC 259 ms
164,800 KB
testcase_03 AC 261 ms
164,864 KB
testcase_04 AC 263 ms
164,692 KB
testcase_05 AC 266 ms
164,692 KB
testcase_06 AC 280 ms
164,620 KB
testcase_07 AC 280 ms
164,944 KB
testcase_08 AC 272 ms
164,876 KB
testcase_09 AC 268 ms
164,884 KB
testcase_10 AC 262 ms
164,796 KB
testcase_11 AC 273 ms
164,920 KB
testcase_12 AC 286 ms
165,360 KB
testcase_13 AC 292 ms
165,256 KB
testcase_14 AC 262 ms
165,652 KB
testcase_15 AC 271 ms
164,772 KB
testcase_16 AC 266 ms
164,908 KB
testcase_17 AC 291 ms
165,248 KB
testcase_18 AC 264 ms
164,628 KB
testcase_19 AC 268 ms
164,912 KB
testcase_20 AC 278 ms
164,744 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

x,y=gets.not_nil!.split.map &.to_i
n=3200
z=[0]*n*n*3
(1..n).each{|a|(0..n).each{|b|z[a*a+b*b]+=4}}
p z[x,y-x+1].max
0