結果

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

ソースコード

diff #

import math, sequtils, strutils

let
  n = parseInt readLine stdin

if n == 1:
  echo 101
  quit()

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


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

echo result
0