結果
問題 |
No.300 平方数
|
ユーザー |
![]() |
提出日時 | 2020-04-15 00:16:52 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 13 ms / 1,000 ms |
コード長 | 260 bytes |
コンパイル時間 | 1,785 ms |
コンパイル使用メモリ | 167,072 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-01 18:27:36 |
合計ジャッジ時間 | 2,996 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 43 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define int long long signed main(){ int x;cin>>x; int res=1; for(int i=2;i*i<=x;i++){ int c=0; while(x%i==0){ c^=1; x/=i; } if(c)res*=i; } if(x)res*=x; cout<<res<<endl; }