結果

問題 No.836 じょうよ
ユーザー shinwisteriashinwisteria
提出日時 2019-08-30 15:50:22
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 453 bytes
コンパイル時間 3,486 ms
コンパイル使用メモリ 74,700 KB
実行使用メモリ 64,596 KB
最終ジャッジ日時 2024-05-01 08:26:40
合計ジャッジ時間 14,281 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 446 ms
64,460 KB
testcase_01 AC 121 ms
54,024 KB
testcase_02 AC 145 ms
54,084 KB
testcase_03 WA -
testcase_04 AC 102 ms
53,000 KB
testcase_05 AC 121 ms
54,264 KB
testcase_06 WA -
testcase_07 AC 104 ms
52,772 KB
testcase_08 WA -
testcase_09 AC 109 ms
53,424 KB
testcase_10 AC 113 ms
54,084 KB
testcase_11 AC 214 ms
54,648 KB
testcase_12 AC 224 ms
55,336 KB
testcase_13 AC 208 ms
54,636 KB
testcase_14 AC 148 ms
53,160 KB
testcase_15 AC 208 ms
54,712 KB
testcase_16 AC 467 ms
64,596 KB
testcase_17 WA -
testcase_18 AC 206 ms
54,228 KB
testcase_19 WA -
testcase_20 AC 354 ms
64,364 KB
testcase_21 AC 161 ms
54,080 KB
testcase_22 AC 314 ms
62,556 KB
testcase_23 AC 448 ms
64,136 KB
testcase_24 AC 171 ms
53,736 KB
testcase_25 AC 282 ms
60,984 KB
testcase_26 AC 154 ms
54,204 KB
testcase_27 AC 152 ms
54,100 KB
testcase_28 AC 213 ms
55,480 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 350 ms
62,860 KB
testcase_37 AC 342 ms
62,708 KB
testcase_38 AC 436 ms
64,308 KB
testcase_39 AC 371 ms
63,488 KB
testcase_40 AC 508 ms
63,000 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 - 1l - n || (i >= t && i <= t + k2)){
				System.out.println(k + 1);
			}else{
				System.out.println(k);
			}
		}
	}

}
0