結果
| 問題 | No.1130 Grid Numbers |
| ユーザー |
xRS43BofaUEZ5gc
|
| 提出日時 | 2021-03-04 10:01:21 |
| 言語 | Java (openjdk 27 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 335 ms / 2,000 ms |
| + 279µs | |
| コード長 | 747 bytes |
| 記録 | |
| コンパイル時間 | 2,823 ms |
| コンパイル使用メモリ | 93,552 KB |
| 実行使用メモリ | 55,972 KB |
| 最終ジャッジ日時 | 2026-10-15 11:58:36 |
| 合計ジャッジ時間 | 6,563 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
import java.util.Arrays;
import java.util.Scanner;
public class HelloWorld {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int number_rows = sc.nextInt();
int number_columns = sc.nextInt();
int[] data = new int[number_columns * number_rows];
for (int i = 0; i < number_rows * number_columns; i ++) {
data[i] = sc.nextInt();
}
Arrays.sort(data);
for (int i = 0; i < number_rows; i++) {
for (int j = 0; j < number_columns; j++) {
System.out.print(data[i * number_columns + j]);
if (j != number_columns - 1) {
System.out.print(" ");
}
}
System.out.println("");
}
}
}
xRS43BofaUEZ5gc