結果
| 問題 | No.781 円周上の格子点の数え上げ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-03-28 15:22:33 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 330 bytes |
| 記録 | |
| コンパイル時間 | 594 ms |
| コンパイル使用メモリ | 95,592 KB |
| 実行使用メモリ | 59,520 KB |
| 最終ジャッジ日時 | 2026-06-30 02:26:14 |
| 合計ジャッジ時間 | 5,415 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 TLE * 2 -- * 7 |
ソースコード
#include <iostream>
#include <map>
using namespace std;
int main(){
map<int,int> A;
int x,y;cin>>x>>y;
for(int i = 1; 4000 > i; i++){
for(int j = 0; 4000 > j; j++){
if(x <= i*i+j*j && i*i+j*j <= y)A[i*i+j*j]++;
}
}
int ans = 0;
for(auto x: A){
ans = max(ans,x.second);
}
cout << ans*4 << endl;
}