結果
| 問題 | No.781 円周上の格子点の数え上げ | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2019-01-11 21:33:35 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 634 bytes | 
| コンパイル時間 | 2,180 ms | 
| コンパイル使用メモリ | 195,952 KB | 
| 最終ジャッジ日時 | 2025-01-06 20:16:14 | 
| ジャッジサーバーID (参考情報) | judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 15 WA * 6 | 
ソースコード
#include <bits/stdc++.h>
#define show(x) std::cerr << #x << " = " << (x) << std::endl
using ll = long long;
using ld = long double;
constexpr ll MOD = 1000000007LL;
template <typename T>
constexpr T INF() { return std::numeric_limits<T>::max() / 16; }
std::mt19937 mt{std::random_device{}()};
int main()
{
    ll X, Y;
    std::cin >> X >> Y;
    std::vector<int> ans(10000001, 0);
    for (int y = -2000; y <= 2000; y++) {
        for (int x = -2000; x <= 2000; x++) { ans[x * x + y * y]++; }
    }
    int max = 0;
    for (int i = X; i <= Y; i++) { max = std::max(max, ans[i]); }
    std::cout << max << std::endl;
    return 0;
}
            
            
            
        