結果
| 問題 | 
                            No.893 お客様を誘導せよ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             toto
                         | 
                    
| 提出日時 | 2025-03-28 10:39:05 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 409 bytes | 
| コンパイル時間 | 409 ms | 
| コンパイル使用メモリ | 28,160 KB | 
| 実行使用メモリ | 810,656 KB | 
| 最終ジャッジ日時 | 2025-03-28 10:39:11 | 
| 合計ジャッジ時間 | 4,612 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | WA * 2 | 
| other | MLE * 1 -- * 10 | 
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:5:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 |         scanf("%d",&cashier);
      |         ~~~~~^~~~~~~~~~~~~~~
main.cpp:16:30: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   16 |                         scanf("%d",&arr[i][j]);
      |                         ~~~~~^~~~~~~~~~~~~~~~~
            
            ソースコード
#include <stdio.h>
int main(){
	int cashier = 0;
	scanf("%d",&cashier);
	
	int arr[cashier][1000000];
	for(int i = 0;i < cashier;i ++){
		for(int j = 0;j < 1000000;j ++){
			arr[i][j] = 0;
		}
	}
	
	for(int i = 0;i < cashier;i ++){
		for(int j = 0;j < 1000000;j ++){
			scanf("%d",&arr[i][j]);
		}
	}
	
	for(int i = 1;i < 1000000;i ++){
		for(int j = 0;j < cashier;j ++){
			printf("%d ",arr[j][i]);
		}
	}
}
            
            
            
        
            
toto