結果

問題 No.836 じょうよ
ユーザー shinwisteriashinwisteria
提出日時 2019-08-30 15:52:13
言語 Java21
(openjdk 21)
結果
AC  
実行時間 594 ms / 1,000 ms
コード長 448 bytes
コンパイル時間 3,550 ms
コンパイル使用メモリ 74,500 KB
実行使用メモリ 53,596 KB
最終ジャッジ日時 2024-05-01 08:30:12
合計ジャッジ時間 16,743 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 504 ms
51,748 KB
testcase_01 AC 137 ms
41,708 KB
testcase_02 AC 125 ms
40,472 KB
testcase_03 AC 132 ms
41,396 KB
testcase_04 AC 135 ms
41,084 KB
testcase_05 AC 141 ms
41,564 KB
testcase_06 AC 134 ms
41,548 KB
testcase_07 AC 140 ms
41,304 KB
testcase_08 AC 136 ms
41,180 KB
testcase_09 AC 138 ms
41,496 KB
testcase_10 AC 135 ms
41,268 KB
testcase_11 AC 251 ms
43,284 KB
testcase_12 AC 271 ms
43,896 KB
testcase_13 AC 244 ms
42,336 KB
testcase_14 AC 187 ms
41,716 KB
testcase_15 AC 253 ms
42,812 KB
testcase_16 AC 498 ms
51,220 KB
testcase_17 AC 499 ms
53,596 KB
testcase_18 AC 245 ms
42,240 KB
testcase_19 AC 279 ms
43,968 KB
testcase_20 AC 398 ms
52,348 KB
testcase_21 AC 201 ms
42,092 KB
testcase_22 AC 368 ms
50,760 KB
testcase_23 AC 516 ms
52,436 KB
testcase_24 AC 215 ms
42,332 KB
testcase_25 AC 333 ms
49,828 KB
testcase_26 AC 178 ms
41,504 KB
testcase_27 AC 182 ms
41,772 KB
testcase_28 AC 244 ms
43,576 KB
testcase_29 AC 203 ms
41,988 KB
testcase_30 AC 190 ms
42,060 KB
testcase_31 AC 243 ms
43,400 KB
testcase_32 AC 250 ms
43,472 KB
testcase_33 AC 192 ms
41,864 KB
testcase_34 AC 246 ms
43,276 KB
testcase_35 AC 240 ms
43,536 KB
testcase_36 AC 403 ms
51,064 KB
testcase_37 AC 392 ms
51,596 KB
testcase_38 AC 464 ms
52,328 KB
testcase_39 AC 434 ms
51,632 KB
testcase_40 AC 594 ms
53,016 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package con_level_1half;
import java.util.Scanner;
public class Con836 {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		long l = s.nextLong() , r = s.nextLong() , n = s.nextLong();
		s.close();

		long k = (r - l) / n , k2 = (r - l) % n , t = l % n;
		for(int i = 0;i < n;i++){
			if(i <= t + k2 - n || (i >= t && i <= t + k2)){
				System.out.println(k + 1);
			}else{
				System.out.println(k);
			}
		}
	}

}
0