Submission #1792729
Source Code Expand
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String[][] array = new String[4][4]; for(int i = 0; i < 4; i++){ array[i] = scanner.nextLine().split(" "); } for(int i = 0; i < 2; i++){ String[] temp = array[i]; array[i] = array[3-i]; array[3-i] = temp; } for(int i = 0; i < 4; i++){ for(int j = 3; j >= 0; j--){ System.out.print(array[i][j] + " "); } System.out.println(); } } }
Submission Info
Submission Time | |
---|---|
Task | B - 回転 |
User | unirita152 |
Language | Java8 (OpenJDK 1.8.0) |
Score | 100 |
Code Size | 528 Byte |
Status | AC |
Exec Time | 102 ms |
Memory | 24916 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | 00_sample_00.txt, 00_sample_01.txt, 01_all_dot.txt, 02_all_o.txt, 03_all_x.txt, rand_0.txt, rand_1.txt, rand_10.txt, rand_11.txt, rand_12.txt, rand_13.txt, rand_14.txt, rand_15.txt, rand_16.txt, rand_17.txt, rand_18.txt, rand_19.txt, rand_2.txt, rand_20.txt, rand_21.txt, rand_22.txt, rand_23.txt, rand_24.txt, rand_3.txt, rand_4.txt, rand_5.txt, rand_6.txt, rand_7.txt, rand_8.txt, rand_9.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_00.txt | AC | 102 ms | 19284 KB |
00_sample_01.txt | AC | 97 ms | 23636 KB |
01_all_dot.txt | AC | 97 ms | 18900 KB |
02_all_o.txt | AC | 97 ms | 23252 KB |
03_all_x.txt | AC | 99 ms | 21844 KB |
rand_0.txt | AC | 97 ms | 21332 KB |
rand_1.txt | AC | 98 ms | 21844 KB |
rand_10.txt | AC | 96 ms | 21844 KB |
rand_11.txt | AC | 98 ms | 21844 KB |
rand_12.txt | AC | 98 ms | 18512 KB |
rand_13.txt | AC | 96 ms | 20688 KB |
rand_14.txt | AC | 102 ms | 17748 KB |
rand_15.txt | AC | 100 ms | 18900 KB |
rand_16.txt | AC | 97 ms | 20688 KB |
rand_17.txt | AC | 98 ms | 19156 KB |
rand_18.txt | AC | 97 ms | 20564 KB |
rand_19.txt | AC | 96 ms | 21716 KB |
rand_2.txt | AC | 96 ms | 21716 KB |
rand_20.txt | AC | 97 ms | 21972 KB |
rand_21.txt | AC | 98 ms | 17876 KB |
rand_22.txt | AC | 97 ms | 21844 KB |
rand_23.txt | AC | 97 ms | 24916 KB |
rand_24.txt | AC | 97 ms | 21588 KB |
rand_3.txt | AC | 97 ms | 21332 KB |
rand_4.txt | AC | 99 ms | 21588 KB |
rand_5.txt | AC | 97 ms | 22612 KB |
rand_6.txt | AC | 98 ms | 19284 KB |
rand_7.txt | AC | 97 ms | 19668 KB |
rand_8.txt | AC | 98 ms | 18900 KB |
rand_9.txt | AC | 97 ms | 19668 KB |