提出 #28940700
ソースコード 拡げる
#include<stdio.h>
int main(){
int H,W,i,j;
scanf("%d %d",&H,&W);
int wt[H][W];
for(i=0;i<H;i++){
for(j=0;j<W;j++){
scanf("%d",&wt[i][j]);
}
}
for(j=0;j<W;j++){
for(i=0;i<H;i++){
printf("%d ",wt[i][j]);
}
printf("\n");
}
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | B - Matrix Transposition |
| ユーザ | TCSP |
| 言語 | C (GCC 9.2.1) |
| 得点 | 200 |
| コード長 | 299 Byte |
| 結果 | AC |
| 実行時間 | 37 ms |
| メモリ | 2116 KiB |
コンパイルエラー
./Main.c: In function ‘main’:
./Main.c:4:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
4 | scanf("%d %d",&H,&W);
| ^~~~~~~~~~~~~~~~~~~~
./Main.c:8:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
8 | scanf("%d",&wt[i][j]);
| ^~~~~~~~~~~~~~~~~~~~~
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 200 / 200 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | example0.txt, example1.txt |
| All | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, example0.txt, example1.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 000.txt | AC | 37 ms | 2024 KiB |
| 001.txt | AC | 6 ms | 1640 KiB |
| 002.txt | AC | 32 ms | 2064 KiB |
| 003.txt | AC | 31 ms | 2024 KiB |
| 004.txt | AC | 33 ms | 2060 KiB |
| 005.txt | AC | 33 ms | 2092 KiB |
| 006.txt | AC | 33 ms | 2012 KiB |
| 007.txt | AC | 33 ms | 2116 KiB |
| example0.txt | AC | 5 ms | 1632 KiB |
| example1.txt | AC | 2 ms | 1708 KiB |