結果
| 問題 |
No.1406 Test
|
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2022-12-27 22:55:58 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 92 ms / 2,000 ms |
| コード長 | 143 bytes |
| コンパイル時間 | 85 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-11-22 10:16:01 |
| 合計ジャッジ時間 | 3,137 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 22 |
コンパイルメッセージ
Syntax OK
ソースコード
a=gets.to_i
if a==1 then
b=0
else
b=gets.split(" ").map{|e| e.to_i}.sum
end
ans=0
0.upto(100){|i|
ans+=1 if (b+i)%a==0
}
puts ans
horiesiniti