結果
問題 | No.1406 Test |
ユーザー |
![]() |
提出日時 | 2023-01-15 23:21:55 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 230 bytes |
コンパイル時間 | 2,204 ms |
コンパイル使用メモリ | 209,928 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-22 17:18:43 |
合計ジャッジ時間 | 3,268 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 |
ソースコード
import std;void main() {int N;readf("%d\n", N);auto A = readln.chomp.split.to!(int[]);auto S = A.sum;int res;foreach (i; 0 .. 101) {if ((S + i) % N == 0) ++res;}res.writeln;}