結果

問題 No.1926 Sequence of Remainders
ユーザー 👑 horiesinitihoriesiniti
提出日時 2023-05-12 21:22:18
言語 Ruby
(3.3.0)
結果
AC  
実行時間 344 ms / 2,000 ms
コード長 118 bytes
コンパイル時間 587 ms
コンパイル使用メモリ 11,580 KB
実行使用メモリ 15,412 KB
最終ジャッジ日時 2023-08-19 03:43:11
合計ジャッジ時間 20,647 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
15,116 KB
testcase_01 AC 315 ms
15,156 KB
testcase_02 AC 296 ms
15,156 KB
testcase_03 AC 288 ms
15,368 KB
testcase_04 AC 289 ms
15,284 KB
testcase_05 AC 291 ms
15,152 KB
testcase_06 AC 304 ms
15,128 KB
testcase_07 AC 318 ms
15,372 KB
testcase_08 AC 310 ms
15,336 KB
testcase_09 AC 315 ms
15,204 KB
testcase_10 AC 313 ms
15,256 KB
testcase_11 AC 311 ms
15,128 KB
testcase_12 AC 312 ms
15,256 KB
testcase_13 AC 326 ms
15,152 KB
testcase_14 AC 336 ms
15,292 KB
testcase_15 AC 312 ms
15,236 KB
testcase_16 AC 327 ms
15,372 KB
testcase_17 AC 310 ms
15,236 KB
testcase_18 AC 317 ms
15,152 KB
testcase_19 AC 311 ms
15,412 KB
testcase_20 AC 311 ms
15,136 KB
testcase_21 AC 310 ms
15,284 KB
testcase_22 AC 309 ms
15,292 KB
testcase_23 AC 303 ms
15,292 KB
testcase_24 AC 344 ms
15,224 KB
testcase_25 AC 306 ms
15,148 KB
testcase_26 AC 307 ms
15,288 KB
testcase_27 AC 324 ms
15,408 KB
testcase_28 AC 313 ms
15,412 KB
testcase_29 AC 306 ms
15,212 KB
testcase_30 AC 305 ms
15,284 KB
testcase_31 AC 304 ms
15,268 KB
testcase_32 AC 312 ms
15,300 KB
testcase_33 AC 307 ms
15,220 KB
testcase_34 AC 309 ms
15,156 KB
testcase_35 AC 305 ms
15,236 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

t=gets.to_i
t.times{
	n,m,k=gets.split(" ").map{|e| e.to_i}
	k2=k%m
	if n<=m-k2-1 then
		puts k2
	else
		puts 0
	end
}
0