Submission #1675648
Source Code Expand
#include <bits/stdc++.h> using namespace std; int main(){ char in[3][3]; for(int i = 0; i < 4; ++i){ for(int j = 0; j < 4; ++j){ cin >> in[i][j]; } } char out[3][3]; for(int i = 0; i < 4; ++i){ for(int j = 0; j < 4; ++j){ out[i][j] = in[3-i][3-j]; } } for(int i = 0; i < 4; ++i){ cout << out[i][0] << ' ' << out[i][1] << ' ' << out[i][2] << ' ' << out[i][3] << endl; } return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - 回転 |
User | aximov |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 450 Byte |
Status | RE |
Exec Time | 119 ms |
Memory | 384 KB |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:13:31: warning: iteration 3u invokes undefined behavior [-Waggressive-loop-optimizations] out[i][j] = in[3-i][3-j]; ^ ./Main.cpp:12:22: note: containing loop for(int j = 0; j < 4; ++j){ ^
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 0 / 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 | RE | 116 ms | 256 KB |
00_sample_01.txt | RE | 110 ms | 256 KB |
01_all_dot.txt | RE | 110 ms | 256 KB |
02_all_o.txt | RE | 111 ms | 256 KB |
03_all_x.txt | RE | 112 ms | 256 KB |
rand_0.txt | RE | 111 ms | 256 KB |
rand_1.txt | RE | 114 ms | 256 KB |
rand_10.txt | RE | 110 ms | 256 KB |
rand_11.txt | RE | 112 ms | 256 KB |
rand_12.txt | RE | 109 ms | 256 KB |
rand_13.txt | RE | 108 ms | 256 KB |
rand_14.txt | RE | 106 ms | 384 KB |
rand_15.txt | RE | 104 ms | 256 KB |
rand_16.txt | RE | 108 ms | 256 KB |
rand_17.txt | RE | 108 ms | 256 KB |
rand_18.txt | RE | 110 ms | 256 KB |
rand_19.txt | RE | 108 ms | 256 KB |
rand_2.txt | RE | 114 ms | 256 KB |
rand_20.txt | RE | 113 ms | 256 KB |
rand_21.txt | RE | 113 ms | 256 KB |
rand_22.txt | RE | 114 ms | 256 KB |
rand_23.txt | RE | 108 ms | 256 KB |
rand_24.txt | RE | 105 ms | 256 KB |
rand_3.txt | RE | 108 ms | 256 KB |
rand_4.txt | RE | 112 ms | 256 KB |
rand_5.txt | RE | 114 ms | 256 KB |
rand_6.txt | RE | 119 ms | 256 KB |
rand_7.txt | RE | 118 ms | 256 KB |
rand_8.txt | RE | 117 ms | 256 KB |
rand_9.txt | RE | 108 ms | 256 KB |