Submission #3373199


Source Code Expand

import java.util.Scanner;

public class Main {

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		String s[][]=new String[n][n];
		for(int i=0;i<n;i++) {
			s[i]=scanner.next().split("");
		}
		for(int i=0;i<n;i++) {
			for(int j=0;j<n;j++) {
				System.out.print(s[s.length-1-j][i]);
			}
			System.out.println("");
		}
	}
}

Submission Info

Submission Time
Task B - 回転
User Jack8
Language Java8 (OpenJDK 1.8.0)
Score 100
Code Size 444 Byte
Status AC
Exec Time 134 ms
Memory 22356 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 11
Set Name Test Cases
All 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, 010.txt
Case Name Status Exec Time Memory
000.txt AC 94 ms 20688 KB
001.txt AC 106 ms 21332 KB
002.txt AC 131 ms 19924 KB
003.txt AC 103 ms 18644 KB
004.txt AC 130 ms 22356 KB
005.txt AC 104 ms 18640 KB
006.txt AC 131 ms 21332 KB
007.txt AC 102 ms 19284 KB
008.txt AC 132 ms 21972 KB
009.txt AC 103 ms 21844 KB
010.txt AC 134 ms 19796 KB