結果

問題 No.1108 移調
ユーザー Rute
提出日時 2020-05-26 21:00:06
言語 Java
(openjdk 23)
結果
AC  
実行時間 155 ms / 2,000 ms
コード長 362 bytes
コンパイル時間 2,042 ms
コンパイル使用メモリ 76,044 KB
実行使用メモリ 54,464 KB
最終ジャッジ日時 2024-10-13 02:59:49
合計ジャッジ時間 6,132 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

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