結果
問題 |
No.1593 Perfect Distance
|
ユーザー |
![]() |
提出日時 | 2021-07-09 15:18:22 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 259 bytes |
コンパイル時間 | 1,601 ms |
コンパイル使用メモリ | 165,816 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-07-01 14:27:29 |
合計ジャッジ時間 | 8,624 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | AC * 11 TLE * 2 -- * 4 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { long long N, Answer = 0; cin >> N; for (long long x = 1; x <= N; x++) { for (long long y = 1; y <= N; y++) { if (x * x + y * y == N * N) Answer++; } } cout << Answer << endl; return 0; }