結果

問題 No.1108 移調
コンテスト
ユーザー Rute
提出日時 2020-05-26 21:00:06
言語 Java
(openjdk 27.0.1.0.3 + ACL)
コンパイル:
javac -J-Duser.language=en -encoding UTF8 -cp /opt/aclib/ac_library.jar _filename_
実行:
java -ea -Xmx700m -Xss256M -DONLINE_JUDGE=true -cp .:/opt/aclib/ac_library.jar _class_
結果
AC  
実行時間 66 ms / 2,000 ms
+ 246µs
コード長 362 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,493 ms
コンパイル使用メモリ 86,852 KB
実行使用メモリ 43,560 KB
最終ジャッジ日時 2026-09-15 08:12:59
合計ジャッジ時間 4,406 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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