結果
| 問題 | No.300 平方数 |
| コンテスト | |
| ユーザー |
cureskol
|
| 提出日時 | 2020-04-15 00:16:52 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 4 ms / 1,000 ms |
| + 291µs | |
| コード長 | 260 bytes |
| 記録 | |
| コンパイル時間 | 930 ms |
| コンパイル使用メモリ | 179,156 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-09-07 23:44:47 |
| 合計ジャッジ時間 | 3,152 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
cureskol