結果

問題 No.1108 移調
ユーザー tentententen
提出日時 2020-11-09 20:10:28
言語 Java21
(openjdk 21)
結果
AC  
実行時間 132 ms / 2,000 ms
コード長 438 bytes
コンパイル時間 2,898 ms
コンパイル使用メモリ 72,492 KB
実行使用メモリ 56,604 KB
最終ジャッジ日時 2023-09-29 22:14:25
合計ジャッジ時間 6,921 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
56,004 KB
testcase_01 AC 118 ms
55,920 KB
testcase_02 AC 118 ms
55,896 KB
testcase_03 AC 126 ms
56,172 KB
testcase_04 AC 121 ms
55,880 KB
testcase_05 AC 132 ms
56,068 KB
testcase_06 AC 124 ms
55,860 KB
testcase_07 AC 126 ms
56,048 KB
testcase_08 AC 128 ms
56,216 KB
testcase_09 AC 126 ms
55,808 KB
testcase_10 AC 122 ms
56,572 KB
testcase_11 AC 126 ms
55,784 KB
testcase_12 AC 122 ms
55,796 KB
testcase_13 AC 121 ms
55,912 KB
testcase_14 AC 126 ms
55,800 KB
testcase_15 AC 118 ms
56,260 KB
testcase_16 AC 121 ms
56,088 KB
testcase_17 AC 120 ms
56,172 KB
testcase_18 AC 122 ms
55,808 KB
testcase_19 AC 126 ms
56,016 KB
testcase_20 AC 123 ms
55,740 KB
testcase_21 AC 120 ms
56,604 KB
testcase_22 AC 127 ms
56,328 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int h = sc.nextInt();
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < n; i++) {
            if (i > 0) {
                sb.append(" ");
            }
            sb.append(sc.nextInt() + h);
        }
        System.out.println(sb);
    }
}
0