結果

問題 No.1108 移調
ユーザー 拓哉拓哉
提出日時 2020-07-21 22:10:37
言語 Java21
(openjdk 21)
結果
AC  
実行時間 164 ms / 2,000 ms
コード長 303 bytes
コンパイル時間 4,503 ms
コンパイル使用メモリ 74,156 KB
実行使用メモリ 57,552 KB
最終ジャッジ日時 2023-08-30 03:11:18
合計ジャッジ時間 8,762 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 140 ms
55,240 KB
testcase_01 AC 138 ms
55,260 KB
testcase_02 AC 139 ms
55,940 KB
testcase_03 AC 154 ms
55,880 KB
testcase_04 AC 141 ms
55,772 KB
testcase_05 AC 156 ms
55,724 KB
testcase_06 AC 149 ms
56,144 KB
testcase_07 AC 156 ms
56,096 KB
testcase_08 AC 158 ms
55,748 KB
testcase_09 AC 154 ms
55,988 KB
testcase_10 AC 149 ms
55,940 KB
testcase_11 AC 157 ms
55,664 KB
testcase_12 AC 146 ms
55,856 KB
testcase_13 AC 144 ms
55,576 KB
testcase_14 AC 154 ms
56,220 KB
testcase_15 AC 139 ms
55,996 KB
testcase_16 AC 146 ms
54,328 KB
testcase_17 AC 139 ms
55,464 KB
testcase_18 AC 144 ms
55,628 KB
testcase_19 AC 156 ms
55,892 KB
testcase_20 AC 150 ms
57,552 KB
testcase_21 AC 139 ms
55,568 KB
testcase_22 AC 164 ms
55,320 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;


class Main {
    public static void main(String[] args) {
   		Scanner sc=new Scanner(System.in);
   		int n=sc.nextInt(),h=sc.nextInt();
   		int[] t=new int[n];
   		for(int i=0;i<n;i++)t[i]=sc.nextInt();
   		
   		for(int a:t)System.out.print(a+h+" ");
   		sc.close();
    }
}
0