結果
| 問題 |
No.2185 平方数の下6桁
|
| コンテスト | |
| ユーザー |
a01sa01to
|
| 提出日時 | 2024-03-27 00:40:11 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 460 bytes |
| コンパイル時間 | 2,559 ms |
| コンパイル使用メモリ | 242,544 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-09-30 14:28:24 |
| 合計ジャッジ時間 | 3,794 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 37 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include "settings/debug.cpp"
#define _GLIBCXX_DEBUG
#else
#define Debug(...) void(0)
#endif
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using ull = unsigned long long;
int main() {
int s;
cin >> s;
for (ll i = 0; i < 1'000'000; i++) {
if (i * i % 1'000'000 == s) {
cout << "YES" << endl;
return 0;
}
}
cout << "NO" << endl;
return 0;
}
a01sa01to