結果

問題 No.750 Frac #1
ユーザー sasa
提出日時 2025-03-10 10:31:05
言語 C
(gcc 13.3.0)
結果
RE  
実行時間 -
コード長 220 bytes
コンパイル時間 365 ms
コンパイル使用メモリ 25,600 KB
実行使用メモリ 7,328 KB
最終ジャッジ日時 2025-03-10 10:31:08
合計ジャッジ時間 3,415 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1 RE * 2
other WA * 18 RE * 12
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 |         scanf("%d",&num);
      |         ^~~~~~~~~~~~~~~~
main.c:10:25: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   10 |                         scanf("%d",&val[i][j]);
      |                         ^~~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>

int main(){
	int num = 0;
	scanf("%d",&num);
	
	int val[2][num];
	for(int i = 0;i < num;i++){
		for(int j = 0;j < 2;j++){
			scanf("%d",&val[i][j]);
			printf("%d",val[j][i]);
		}
		printf("\n");
	}
}
0