結果

問題 No.1108 移調
ユーザー RuteRute
提出日時 2020-05-26 21:00:06
言語 Java21
(openjdk 21)
結果
AC  
実行時間 165 ms / 2,000 ms
コード長 362 bytes
コンパイル時間 2,214 ms
コンパイル使用メモリ 77,656 KB
実行使用メモリ 42,152 KB
最終ジャッジ日時 2024-04-21 04:34:48
合計ジャッジ時間 6,624 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 149 ms
41,796 KB
testcase_01 AC 145 ms
41,556 KB
testcase_02 AC 143 ms
41,720 KB
testcase_03 AC 160 ms
41,560 KB
testcase_04 AC 136 ms
40,368 KB
testcase_05 AC 163 ms
42,092 KB
testcase_06 AC 160 ms
41,404 KB
testcase_07 AC 159 ms
41,884 KB
testcase_08 AC 165 ms
41,716 KB
testcase_09 AC 159 ms
41,652 KB
testcase_10 AC 153 ms
41,956 KB
testcase_11 AC 165 ms
41,944 KB
testcase_12 AC 143 ms
40,300 KB
testcase_13 AC 152 ms
41,720 KB
testcase_14 AC 155 ms
41,648 KB
testcase_15 AC 148 ms
41,768 KB
testcase_16 AC 155 ms
42,152 KB
testcase_17 AC 147 ms
41,784 KB
testcase_18 AC 139 ms
40,412 KB
testcase_19 AC 158 ms
41,856 KB
testcase_20 AC 154 ms
41,540 KB
testcase_21 AC 144 ms
41,588 KB
testcase_22 AC 158 ms
41,724 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner (System.in);
		int n = scan.nextInt();
		int h = scan.nextInt();
		
		int [] a = new int[n];
		for (int i=0; i<n; i++) {
			a[i] = scan.nextInt()+h;
		}
		for (int i=0; i<n; i++) {
			System.out.print(a[i]+" ");
		}
		System.out.println("");
	}
}
0