結果
問題 | No.781 円周上の格子点の数え上げ |
ユーザー |
![]() |
提出日時 | 2019-02-08 21:03:49 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 304 bytes |
コンパイル時間 | 1,347 ms |
コンパイル使用メモリ | 167,336 KB |
実行使用メモリ | 42,308 KB |
最終ジャッジ日時 | 2024-06-28 17:33:59 |
合計ジャッジ時間 | 7,023 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 21 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ vector<int> a(10005000,0); for(int i=1;i<=3163;i++){ for(int j=0;j<=3163;j++){ a[i*i+j*j]++; } } int x,y,m=0; cin>>x>>y; for(int i=x;i<=y;i++){ m=max(a[i],m); } cout<<m*4<<endl; }