結果
問題 |
No.300 平方数
|
ユーザー |
![]() |
提出日時 | 2019-09-26 04:54:26 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 289 bytes |
コンパイル時間 | 1,511 ms |
コンパイル使用メモリ | 167,556 KB |
実行使用メモリ | 13,756 KB |
最終ジャッジ日時 | 2024-09-23 07:03:27 |
合計ジャッジ時間 | 4,473 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 WA * 10 TLE * 1 -- * 22 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { long x, y = 1; cin >> x; for (int i = 2; i * i <= x; i++) { int n = 0; while (x % i == 0) { n++; x /= i; } if (n % 2 == 1) y *= i; } cout << y << endl; }