結果

問題 No.565 回転拡大
コンテスト
ユーザー testestest
提出日時 2017-11-07 06:55:36
言語 C(gnu17)
(gcc 15.2.0)
コンパイル:
gcc-15 -O2 -std=gnu17 -Wno-error=implicit-function-declaration -Wno-error=implicit-int -Wno-error=incompatible-pointer-types -Wno-error=int-conversion -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
AC  
実行時間 0 ms / 2,000 ms
+ 782µs
コード長 232 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 62 ms
コンパイル使用メモリ 37,760 KB
実行使用メモリ 5,888 KB
最終ジャッジ日時 2026-07-21 17:19:58
合計ジャッジ時間 1,767 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
    1 | i,J;char s[5][11][11];main(r,k,h,w,j){for(scanf("%d%d%d%d\n",&r,&k,&h,&w),r/=90;gets(s[r][i++]););for(;r;i=h^=w^=h^=w)for(r--;i--;)for(j=w;j--;s[r][j][i]=s[r+1][h-1-i][j]);for(;J/w/k?J=!puts(""),++r<h*k:putchar(s[0][r/k][J++/k]););}
      | ^
main.c:1:1: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
main.c:1:3: warning: type defaults to 'int' in declaration of 'J' [-Wimplicit-int]
    1 | i,J;char s[5][11][11];main(r,k,h,w,j){for(scanf("%d%d%d%d\n",&r,&k,&h,&w),r/=90;gets(s[r][i++]););for(;r;i=h^=w^=h^=w)for(r--;i--;)for(j=w;j--;s[r][j][i]=s[r+1][h-1-i][j]);for(;J/w/k?J=!puts(""),++r<h*k:putchar(s[0][r/k][J++/k]););}
      |   ^
main.c:1:23: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | i,J;char s[5][11][11];main(r,k,h,w,j){for(scanf("%d%d%d%d\n",&r,&k,&h,&w),r/=90;gets(s[r][i++]););for(;r;i=h^=w^=h^=w)for(r--;i--;)for(j=w;j--;s[r][j][i]=s[r+1][h-1-i][j]);for(;J/w/k?J=!puts(""),++r<h*k:putchar(s[0][r/k][J++/k]););}
      |                       ^~~~
main.c: In function 'main':
main.c:1:23: warning: type of 'r' defaults to 'int' [-Wimplicit-int]
main.c:1:23: warning: type of 'k' defaults to 'int' [-Wimplicit-int]
main.c:1:23: warning: type of 'h' defaults to 'int' [-Wimplicit-int]
main.c:1:23: warning: type of 'w' defaults to 'int' [-Wimplicit-int]
main.c:1:23: warning: type of 'j' defaults to 'int' [-Wimplicit-int]
main.c:1:43: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | i,J;char s[5][11][11];main(r,k,h,w,j){for(scanf("%d%d%d%d\n",&r,&k,&h,&w),r/=90;gets(s[r][i++]););for(;r;i=h^=w^=h^=w)for(r--;i--;)for(j=w;j--;s[r][j][i]=s[r+1][h-1-i][j]);for(;J/w/k?J=!puts(""),++r<h*k:putchar(s[0][r/k][J++/k]););}
      |                                           ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | i,J;char s[5][11][11];main(r,k,h,w,j){for(s

ソースコード

diff #
raw source code

i,J;char s[5][11][11];main(r,k,h,w,j){for(scanf("%d%d%d%d\n",&r,&k,&h,&w),r/=90;gets(s[r][i++]););for(;r;i=h^=w^=h^=w)for(r--;i--;)for(j=w;j--;s[r][j][i]=s[r+1][h-1-i][j]);for(;J/w/k?J=!puts(""),++r<h*k:putchar(s[0][r/k][J++/k]););}
0