結果
| 問題 | No.537 ユーザーID | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2019-01-16 11:55:54 | 
| 言語 | Nim (2.2.0) | 
| 結果 | 
                                CE
                                 
                            (最新) 
                                AC
                                 
                            (最初) | 
| 実行時間 | - | 
| コード長 | 824 bytes | 
| コンパイル時間 | 919 ms | 
| コンパイル使用メモリ | 73,664 KB | 
| 最終ジャッジ日時 | 2024-11-14 20:45:42 | 
| 合計ジャッジ時間 | 1,259 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
            
            
            
            
            ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
/home/judge/data/code/Main.nim(2, 28) Error: cannot open file: queues
ソースコード
import sequtils,strutils,algorithm,math,sugar,macros,strformat
import sets,tables,intsets,queues,heapqueue,bitops
template get*():string = stdin.readLine().strip()
macro unpack*(arr: auto,cnt: static[int]): auto =
  let t = genSym(); result = quote do:(let `t` = `arr`;())
  for i in 0..<cnt: result[1].add(quote do:`t`[`i`])
template times*(n:int,body) = (for _ in 0..<n: body)
template `max=`*(x,y) = x = max(x,y)
template `min=`*(x,y) = x = min(x,y)
proc concat(a,b:int):int =
  var dec = 1
  while true:
    if b >= dec * 10:
      dec *= 10
      continue
    return a * dec * 10 + b
let n = get().parseInt()
var results = initIntSet()
let iMax = n.float.sqrt.int
for i in 1..iMax:
  if n mod i != 0: continue
  results.incl(i.concat(cast[int](n div i)))
  results.incl(cast[int](n div i).concat(i))
echo results.card
            
            
            
        