結果
問題 |
No.300 平方数
|
ユーザー |
![]() |
提出日時 | 2019-09-26 04:55:18 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 290 bytes |
コンパイル時間 | 1,780 ms |
コンパイル使用メモリ | 166,744 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-23 07:03:35 |
合計ジャッジ時間 | 3,003 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 WA * 34 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { long x, y = 1; cin >> x; for (long 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; }