結果
問題 | No.1406 Test |
ユーザー |
|
提出日時 | 2021-06-20 23:06:06 |
言語 | Swift (6.0.3) |
結果 |
AC
|
実行時間 | 10 ms / 2,000 ms |
コード長 | 195 bytes |
コンパイル時間 | 1,057 ms |
コンパイル使用メモリ | 131,892 KB |
実行使用メモリ | 9,344 KB |
最終ジャッジ日時 | 2024-06-22 22:43:24 |
合計ジャッジ時間 | 2,089 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 |
ソースコード
let n = Int(readLine()!)!let a = readLine()!.split(separator: " ").map{Int($0)!}let t = a.reduce(0){$0 + $1}var c = 0for i in 0...100{if (t + i) % n == 0{c += 1}}print(c)