Submission #4118901
Source Code Expand
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <tuple>
#include <queue>
#include <cmath>
#include <cfloat>
#include <set>
#include <map>
// statics
using namespace std;
using int64 = int_fast64_t;
using PAIR = pair<int64, int64>;
constexpr int INF = 1 << 30;
constexpr int64 LINF = 1LL << 60;
constexpr int MOD = 1e9 + 7;
constexpr int MAX_N = 3e5 + 1;
// init/input
#define int int64
#define INIT ios::sync_with_stdio(false);cin.tie(0);
#define VAR(type, ...) type __VA_ARGS__;MACRO_VAR_Scan(__VA_ARGS__);
template<typename T> void MACRO_VAR_Scan(T &t) {cin>>t;}
template<typename First, typename...Rest> void MACRO_VAR_Scan(First &first, Rest&...rest) {cin>>first;MACRO_VAR_Scan(rest...);}
#define VEC(type, c, n) vector<type> c(n);for(auto &&i:c)cin>>i;
// out
#define OUT(dist) cout<<(dist);
#define FOUT(n, dist) cout<<fixed<<setprecision(n)<<(dist);
#define SP cout<<" ";
#define BR cout<<endl;
#define zero(n) cout<<setfill('0')<<right<<setw(n)
#define debug(x) cerr<<#x<<":"<< (x);BR;
// utility
#define ALL(a) (a).begin(), (a).end()
#define EACH(i, a) for(auto &&i:(a))
#define FOR(i, a, b) for(int i=(a);i<(b);++i)
#define RFOR(i, a, b) for(int i=(b)-1;i>=0;--i)
#define REP(i, n) for(int i=0;i<(n);++i)
#define RREP(i, n) for(int i=(n)-1;i>=0;--i)
signed main() {
  INIT;
	VAR(int, n);
	VEC(string, s, n);
	REP(hi, n){
		RREP(wi, n) {
			OUT(s[wi][hi]);
		}
		BR;
	}
  
  return 0;
}
			Submission Info
| Submission Time | |
|---|---|
| Task | B - 回転 | 
| User | task4233 | 
| Language | C++14 (GCC 5.4.1) | 
| Score | 100 | 
| Code Size | 1498 Byte | 
| Status | AC | 
| Exec Time | 1 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 | 1 ms | 256 KiB | 
| 001.txt | AC | 1 ms | 256 KiB | 
| 002.txt | AC | 1 ms | 256 KiB | 
| 003.txt | AC | 1 ms | 256 KiB | 
| 004.txt | AC | 1 ms | 256 KiB | 
| 005.txt | AC | 1 ms | 256 KiB | 
| 006.txt | AC | 1 ms | 256 KiB | 
| 007.txt | AC | 1 ms | 256 KiB | 
| 008.txt | AC | 1 ms | 256 KiB | 
| 009.txt | AC | 1 ms | 256 KiB | 
| 010.txt | AC | 1 ms | 256 KiB |