結果

問題 No.5001 排他的論理和でランニング
ユーザー uafr_cs
提出日時 2018-03-16 22:23:18
言語 Java
(openjdk 23)
結果
AC  
実行時間 657 ms / 1,500 ms
コード長 461 bytes
コンパイル時間 2,225 ms
実行使用メモリ 55,988 KB
スコア 24,513,786
最終ジャッジ日時 2020-03-12 19:22:18
ジャッジサーバーID
(参考情報)
judge9 /
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 50
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.LinkedList;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		final int N = sc.nextInt();
		final int M = sc.nextInt();
		
		long[] array = new long[N];
		for(int i = 0; i < N; i++){
			array[i] = sc.nextLong();
		}
		
		for(int i = 0; i < M; i++){
			System.out.print((i == 0 ? "" : " ") + (array[i]));
		}
		System.out.println();
	}
}
0