結果

問題 No.836 じょうよ
ユーザー shinwisteriashinwisteria
提出日時 2019-08-30 15:52:13
言語 Java21
(openjdk 21)
結果
AC  
実行時間 612 ms / 1,000 ms
コード長 448 bytes
コンパイル時間 3,466 ms
コンパイル使用メモリ 71,688 KB
実行使用メモリ 66,048 KB
最終ジャッジ日時 2023-08-13 15:44:04
合計ジャッジ時間 16,420 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 540 ms
63,800 KB
testcase_01 AC 125 ms
55,652 KB
testcase_02 AC 125 ms
55,616 KB
testcase_03 AC 121 ms
55,872 KB
testcase_04 AC 121 ms
55,656 KB
testcase_05 AC 126 ms
55,644 KB
testcase_06 AC 120 ms
55,528 KB
testcase_07 AC 121 ms
55,564 KB
testcase_08 AC 121 ms
55,976 KB
testcase_09 AC 124 ms
55,660 KB
testcase_10 AC 121 ms
56,032 KB
testcase_11 AC 234 ms
57,404 KB
testcase_12 AC 248 ms
57,328 KB
testcase_13 AC 228 ms
57,100 KB
testcase_14 AC 161 ms
57,948 KB
testcase_15 AC 227 ms
57,028 KB
testcase_16 AC 539 ms
64,436 KB
testcase_17 AC 517 ms
64,364 KB
testcase_18 AC 226 ms
56,328 KB
testcase_19 AC 264 ms
59,120 KB
testcase_20 AC 410 ms
63,208 KB
testcase_21 AC 172 ms
56,156 KB
testcase_22 AC 367 ms
62,060 KB
testcase_23 AC 521 ms
64,092 KB
testcase_24 AC 201 ms
56,152 KB
testcase_25 AC 319 ms
63,440 KB
testcase_26 AC 159 ms
55,864 KB
testcase_27 AC 180 ms
56,324 KB
testcase_28 AC 231 ms
57,288 KB
testcase_29 AC 192 ms
55,924 KB
testcase_30 AC 176 ms
55,704 KB
testcase_31 AC 228 ms
57,308 KB
testcase_32 AC 219 ms
57,284 KB
testcase_33 AC 175 ms
55,988 KB
testcase_34 AC 220 ms
57,564 KB
testcase_35 AC 218 ms
57,752 KB
testcase_36 AC 407 ms
66,048 KB
testcase_37 AC 407 ms
64,296 KB
testcase_38 AC 467 ms
62,476 KB
testcase_39 AC 427 ms
64,120 KB
testcase_40 AC 612 ms
65,804 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