結果
問題 |
No.300 平方数
|
ユーザー |
|
提出日時 | 2015-11-28 18:48:07 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 442 bytes |
コンパイル時間 | 410 ms |
コンパイル使用メモリ | 54,600 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-14 04:57:38 |
合計ジャッジ時間 | 1,788 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 42 WA * 1 |
ソースコード
#include <iostream> using namespace std; int main() { // input long long int input, x; cin >> input; x = input; // solve for (long long i = 2; i * i < x; i++) { //cout << "[for]: " << i << endl; for (int j = 0; j < input; j++) { //cout << "[Next] " << x << " % " << i*i << endl; if ((x % (i * i)) == 0) { x = x / (i * i); //cout << x << endl; } else { break; } } } cout << x << endl; return 0; }