結果

問題 No.836 じょうよ
ユーザー tsunabittsunabit
提出日時 2019-07-15 03:33:54
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 554 bytes
コンパイル時間 3,303 ms
コンパイル使用メモリ 73,036 KB
実行使用メモリ 69,900 KB
最終ジャッジ日時 2023-08-16 15:06:20
合計ジャッジ時間 16,984 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 507 ms
63,948 KB
testcase_01 AC 130 ms
55,832 KB
testcase_02 AC 131 ms
56,120 KB
testcase_03 WA -
testcase_04 AC 124 ms
55,524 KB
testcase_05 AC 131 ms
55,852 KB
testcase_06 WA -
testcase_07 AC 122 ms
56,056 KB
testcase_08 AC 120 ms
55,760 KB
testcase_09 AC 121 ms
55,468 KB
testcase_10 AC 120 ms
55,520 KB
testcase_11 AC 229 ms
57,580 KB
testcase_12 AC 238 ms
57,696 KB
testcase_13 AC 227 ms
57,312 KB
testcase_14 AC 162 ms
55,824 KB
testcase_15 AC 239 ms
57,564 KB
testcase_16 AC 527 ms
61,740 KB
testcase_17 WA -
testcase_18 AC 227 ms
58,560 KB
testcase_19 WA -
testcase_20 AC 390 ms
63,460 KB
testcase_21 AC 176 ms
56,300 KB
testcase_22 AC 340 ms
62,048 KB
testcase_23 AC 516 ms
64,660 KB
testcase_24 AC 194 ms
56,032 KB
testcase_25 AC 303 ms
59,760 KB
testcase_26 AC 172 ms
56,040 KB
testcase_27 AC 182 ms
56,336 KB
testcase_28 AC 221 ms
57,248 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 394 ms
64,260 KB
testcase_37 AC 379 ms
63,884 KB
testcase_38 AC 458 ms
63,824 KB
testcase_39 AC 422 ms
64,992 KB
testcase_40 AC 598 ms
64,432 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
import java.math.*;

public class No836 {
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	long l = sc.nextLong(), r = sc.nextLong(), n = sc.nextLong();
    	long o = (r - l + 1) / n;
    	if((r - l + 1) % n == 0) {
    		for(int i = 0; i < n; i++) {
        		System.out.println(o);
        	}
    	}else {
    		for(int i = 0; i < n; i++) {
        		if(l % n <= i && i <= r % n) System.out.println(o + 1);
        		else System.out.println(o);
        	}
    	}
    }
}
0