Submission #690602
Source Code Expand
#include <stdio.h>
#include <iostream>
#include <sstream>
#include <vector>
#include <string>
using namespace std;
int main(void){
int n;
string str;
char str2[50][50];
cin >> n;
for (int i = 0; i != n; i++) {
cin >> str;
for (int j = 0; j < n; j++) {
str2[i][j] = str[j];
}
}
for (int j = 0; j < n; j++) {
for (int i = n-1; i >= 0; i--) {
cout << str2[i][j];
}
cout << endl;
}
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - 回転 |
| User | akarii |
| Language | C++14 (Clang 3.8.0) |
| Score | 100 |
| Code Size | 472 Byte |
| Status | AC |
| Exec Time | 5 ms |
| Memory | 256 KiB |
Judge Result
| Set Name | All | ||
|---|---|---|---|
| Score / Max Score | 100 / 100 | ||
| Status |
|
| 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 | 4 ms | 256 KiB |
| 001.txt | AC | 4 ms | 256 KiB |
| 002.txt | AC | 5 ms | 256 KiB |
| 003.txt | AC | 4 ms | 256 KiB |
| 004.txt | AC | 5 ms | 256 KiB |
| 005.txt | AC | 4 ms | 256 KiB |
| 006.txt | AC | 5 ms | 256 KiB |
| 007.txt | AC | 4 ms | 256 KiB |
| 008.txt | AC | 5 ms | 256 KiB |
| 009.txt | AC | 4 ms | 256 KiB |
| 010.txt | AC | 5 ms | 256 KiB |