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