結果
| 問題 | 
                            No.300 平方数
                             | 
                    
| コンテスト | |
| ユーザー | 
                             tnoda_
                         | 
                    
| 提出日時 | 2015-11-17 18:21:05 | 
| 言語 | Python2  (2.7.18)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 215 bytes | 
| コンパイル時間 | 884 ms | 
| コンパイル使用メモリ | 7,040 KB | 
| 実行使用メモリ | 14,240 KB | 
| 最終ジャッジ日時 | 2024-09-13 16:53:13 | 
| 合計ジャッジ時間 | 14,657 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 21 WA * 22 | 
ソースコード
X = input()
a = [0] * 1000010
i = 2
while i < 1000000:
    if X % i == 0:
        X /= i
        a[i] += 1
    else:
        i += 1
ans = 1
for i in xrange(len(a)):
    if a[i] % 2 == 1:
        ans *= i
print(ans)
            
            
            
        
            
tnoda_