結果

問題 No.781 円周上の格子点の数え上げ
ユーザー maimai
提出日時 2019-01-11 23:54:52
言語 cLay
(20240104-1)
結果
WA  
実行時間 -
コード長 241 bytes
コンパイル時間 2,145 ms
コンパイル使用メモリ 161,092 KB
実行使用メモリ 83,396 KB
最終ジャッジ日時 2023-09-19 00:18:15
合計ジャッジ時間 6,188 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 131 ms
83,200 KB
testcase_02 AC 128 ms
83,264 KB
testcase_03 WA -
testcase_04 AC 127 ms
83,260 KB
testcase_05 WA -
testcase_06 AC 129 ms
83,228 KB
testcase_07 AC 130 ms
83,160 KB
testcase_08 AC 128 ms
83,320 KB
testcase_09 AC 128 ms
83,248 KB
testcase_10 AC 125 ms
83,392 KB
testcase_11 AC 128 ms
83,200 KB
testcase_12 AC 134 ms
83,256 KB
testcase_13 AC 142 ms
83,224 KB
testcase_14 AC 125 ms
83,248 KB
testcase_15 AC 130 ms
83,220 KB
testcase_16 AC 128 ms
83,396 KB
testcase_17 AC 137 ms
83,160 KB
testcase_18 AC 128 ms
83,260 KB
testcase_19 AC 125 ms
83,160 KB
testcase_20 AC 125 ms
83,196 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll h;
inline int dt(ll x, ll y){
    int u = x*x+y*y;
    return 10000010 <= u ? 0 : u;
}
ll m[10000010],X,Y;
{
    int X,Y,best=0;
    rd(X,Y);
    REP(i,4000) REP(j,4000) m[dt(i,j)]+=4;
    REP(i,X,Y+1) best=max(best,m[i]);
    wt(best);
}
0