結果
問題 | No.781 円周上の格子点の数え上げ |
ユーザー | Pachicobue |
提出日時 | 2019-01-11 21:33:35 |
言語 | C++17 (gcc 13.2.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 634 bytes |
コンパイル時間 | 1,864 ms |
コンパイル使用メモリ | 201,044 KB |
実行使用メモリ | 42,516 KB |
最終ジャッジ日時 | 2023-08-20 04:26:06 |
合計ジャッジ時間 | 4,085 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 59 ms
42,260 KB |
testcase_01 | AC | 61 ms
42,244 KB |
testcase_02 | AC | 63 ms
42,284 KB |
testcase_03 | AC | 67 ms
42,256 KB |
testcase_04 | AC | 64 ms
42,260 KB |
testcase_05 | AC | 71 ms
42,260 KB |
testcase_06 | AC | 66 ms
42,336 KB |
testcase_07 | AC | 62 ms
42,464 KB |
testcase_08 | WA | - |
testcase_09 | AC | 60 ms
42,148 KB |
testcase_10 | AC | 63 ms
42,204 KB |
testcase_11 | AC | 63 ms
42,260 KB |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | AC | 57 ms
42,152 KB |
testcase_15 | AC | 59 ms
42,324 KB |
testcase_16 | AC | 55 ms
42,320 KB |
testcase_17 | AC | 62 ms
42,256 KB |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
ソースコード
#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; }