結果

問題 No.1406 Test
ユーザー kou_kkkkou_kkk
提出日時 2024-03-27 10:08:36
言語 Nim
(2.2.0)
結果
RE  
実行時間 -
コード長 234 bytes
コンパイル時間 3,371 ms
コンパイル使用メモリ 65,152 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-09-30 14:31:02
合計ジャッジ時間 3,637 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18 RE * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

import math, sequtils, strutils

let
  n = parseInt readLine stdin
  a = stdin.readLine.split.map parseInt
var
  result = 0

if n == 1:
  echo 101
  quit()

for i in 0..100:
  if (a.sum.succ(i) mod n) == 0:
    inc result

echo result
0