結果
| 問題 | No.2185 平方数の下6桁 |
| コンテスト | |
| ユーザー |
a01sa01to
|
| 提出日時 | 2024-03-27 00:40:11 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 2 ms / 2,000 ms |
| + 76µs | |
| コード長 | 460 bytes |
| 記録 | |
| コンパイル時間 | 1,908 ms |
| コンパイル使用メモリ | 329,808 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-09-06 19:22:42 |
| 合計ジャッジ時間 | 3,783 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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