結果
| 問題 |
No.300 平方数
|
| コンテスト | |
| ユーザー |
rocoder
|
| 提出日時 | 2017-08-10 04:03:06 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 366 bytes |
| コンパイル時間 | 122 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-10-12 01:21:11 |
| 合計ジャッジ時間 | 4,688 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 36 RE * 7 |
ソースコード
# your code goes here
#square
X=int(input())
N=0
N=X
i=2
a=[]
c=[]
while i*i<=N:
if N%i==0:
a.append(i)
N//=i
b=1
while N%i==0:
N//=i
b+=1
c.append(b)
i+=1
if a==[]:
a=[X]
b=[1]
else:
a.append(N)
c.append(1)
S=1
for i in range(len(a)):
if c[i]%2==1:
S*=a[i]
print(S)
rocoder