結果
問題 |
No.3191 Operation Puzzle
|
ユーザー |
![]() |
提出日時 | 2025-06-27 21:23:47 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 162 ms / 2,000 ms |
コード長 | 548 bytes |
コンパイル時間 | 2,250 ms |
コンパイル使用メモリ | 76,860 KB |
実行使用メモリ | 46,604 KB |
最終ジャッジ日時 | 2025-06-27 21:23:57 |
合計ジャッジ時間 | 10,300 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 45 |
ソースコード
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 < 4; 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()); } } }