結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 2 ms
5,392 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 3 ms
7,160 KB
testcase_08 RE -
testcase_09 RE -
testcase_10 WA -
testcase_11 WA -
testcase_12 RE -
testcase_13 RE -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

ll h;

int dist(ll x, ll y){
    return x*x+y*y;
}
ll m[10000010],X,Y;
{
    int X,Y,best=0;
    rd(X,Y);
    h = float(sqrt(Y))+1;
    REP(i,h) REP(j,h) m[dist(i,j)]++;
    REP(i,X,Y+1) best=max(best,m[i]);
    wt(best);
}
0