結果
| 問題 |
No.300 平方数
|
| コンテスト | |
| ユーザー |
t8m8⛄️
|
| 提出日時 | 2016-04-26 23:07:05 |
| 言語 | Nim (2.2.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 283 bytes |
| コンパイル時間 | 3,103 ms |
| コンパイル使用メモリ | 63,872 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-29 13:38:47 |
| 合計ジャッジ時間 | 4,168 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 WA * 33 |
ソースコード
import strutils
var
x : int64 = stdin.readLine.parseBiggestInt
i = 1'i64
ans = 1'i64
while i*i <= x:
i += 1
if x mod i != 0: continue
var cnt = 0
while x mod i == 0:
x = x /% i
cnt += 1
if cnt mod 2 == 1:
ans *= i
ans.echo
t8m8⛄️