結果

問題 No.1406 Test
ユーザー 👑 horiesinitihoriesiniti
提出日時 2022-12-27 22:53:12
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 104 bytes
コンパイル時間 104 ms
コンパイル使用メモリ 11,220 KB
実行使用メモリ 15,364 KB
最終ジャッジ日時 2023-08-14 12:49:33
合計ジャッジ時間 3,772 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,048 KB
testcase_01 AC 82 ms
15,128 KB
testcase_02 AC 82 ms
15,128 KB
testcase_03 AC 81 ms
15,244 KB
testcase_04 AC 83 ms
15,096 KB
testcase_05 AC 82 ms
15,128 KB
testcase_06 AC 81 ms
15,216 KB
testcase_07 RE -
testcase_08 AC 81 ms
15,300 KB
testcase_09 RE -
testcase_10 AC 80 ms
15,276 KB
testcase_11 AC 81 ms
15,068 KB
testcase_12 AC 81 ms
15,100 KB
testcase_13 AC 82 ms
15,048 KB
testcase_14 AC 80 ms
15,240 KB
testcase_15 AC 79 ms
15,120 KB
testcase_16 AC 79 ms
15,136 KB
testcase_17 RE -
testcase_18 AC 81 ms
15,060 KB
testcase_19 AC 80 ms
15,296 KB
testcase_20 RE -
testcase_21 AC 80 ms
15,144 KB
testcase_22 AC 80 ms
15,280 KB
testcase_23 AC 81 ms
15,044 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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
0