結果

問題 No.537 ユーザーID
ユーザー toshiro_yanagi
提出日時 2018-06-13 07:34:22
言語 Nim
(2.2.0)
結果
WA  
実行時間 -
コード長 194 bytes
コンパイル時間 3,182 ms
コンパイル使用メモリ 65,276 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-30 14:02:58
合計ジャッジ時間 4,045 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

import strutils, math

let N = stdin.readLine.parseInt
var
  i, cnt = 0

while true:
  i += 1
  let j = i ^ 2
  if j > N: break
  if N mod i == 0:
    cnt += 1
    if j != N: cnt += 1

echo cnt
0