結果

問題 No.3191 Operation Puzzle
ユーザー ks2m
提出日時 2025-06-27 21:23:03
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 548 bytes
コンパイル時間 4,704 ms
コンパイル使用メモリ 77,024 KB
実行使用メモリ 46,712 KB
最終ジャッジ日時 2025-06-27 21:23:16
合計ジャッジ時間 10,917 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other WA * 45
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			a[i] = sc.nextInt();
		}
		int x = sc.nextInt();
		sc.close();

		System.out.println("Yes");
		for (int i = 0; i < n; i++) {
			StringBuilder sb = new StringBuilder();
			for (int j = 0; j < 4; j++) {
				sb.append(x).append(' ');
			}
			sb.deleteCharAt(sb.length() - 1);
			System.out.println(sb.toString());
		}
	}
}
0