Submission #1609100
Source Code Expand
#include <stdio.h>
int main(void)
{
int i;
char in[4][16];
char out[4][16]={0};
fgets(&in[0][0], 16, stdin);
fgets(&in[1][0], 16, stdin);
fgets(&in[2][0], 16, stdin);
fgets(&in[3][0], 16, stdin);
for(i=0;i<7;++i){
out[0][i]=in[3][6-i];
out[1][i]=in[2][6-i];
out[2][i]=in[1][6-i];
out[3][i]=in[0][6-i];
}
for(i=0;i<4;++i)
printf("%s\n", out[i]);
return 0;
}
Submission Info
Submission Time
2017-09-21 08:28:14+0900
Task
B - 回転
User
iseekautos
Language
C (GCC 5.4.1)
Score
100
Code Size
419 Byte
Status
AC
Exec Time
0 ms
Memory
128 KB
Compile Error
./Main.c: In function ‘main’:
./Main.c:8:3: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(&in[0][0], 16, stdin);
^
./Main.c:9:3: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(&in[1][0], 16, stdin);
^
./Main.c:10:3: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(&in[2][0], 16, stdin);
^
./Main.c:11:3: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(&in[3][0], 16, stdin);
^
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
0 ms
128 KB
00_sample_01.txt
AC
0 ms
128 KB
01_all_dot.txt
AC
0 ms
128 KB
02_all_o.txt
AC
0 ms
128 KB
03_all_x.txt
AC
0 ms
128 KB
rand_0.txt
AC
0 ms
128 KB
rand_1.txt
AC
0 ms
128 KB
rand_10.txt
AC
0 ms
128 KB
rand_11.txt
AC
0 ms
128 KB
rand_12.txt
AC
0 ms
128 KB
rand_13.txt
AC
0 ms
128 KB
rand_14.txt
AC
0 ms
128 KB
rand_15.txt
AC
0 ms
128 KB
rand_16.txt
AC
0 ms
128 KB
rand_17.txt
AC
0 ms
128 KB
rand_18.txt
AC
0 ms
128 KB
rand_19.txt
AC
0 ms
128 KB
rand_2.txt
AC
0 ms
128 KB
rand_20.txt
AC
0 ms
128 KB
rand_21.txt
AC
0 ms
128 KB
rand_22.txt
AC
0 ms
128 KB
rand_23.txt
AC
0 ms
128 KB
rand_24.txt
AC
0 ms
128 KB
rand_3.txt
AC
0 ms
128 KB
rand_4.txt
AC
0 ms
128 KB
rand_5.txt
AC
0 ms
128 KB
rand_6.txt
AC
0 ms
128 KB
rand_7.txt
AC
0 ms
128 KB
rand_8.txt
AC
0 ms
128 KB
rand_9.txt
AC
0 ms
128 KB