結果
| 問題 |
No.781 円周上の格子点の数え上げ
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2023-03-28 15:22:33 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 330 bytes |
| コンパイル時間 | 736 ms |
| コンパイル使用メモリ | 76,544 KB |
| 最終ジャッジ日時 | 2025-02-11 18:50:56 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 18 TLE * 3 |
ソースコード
#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;
}