結果
| 問題 | No.736 約比 | 
| コンテスト | |
| ユーザー |  toto | 
| 提出日時 | 2025-03-28 16:55:49 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                RE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 487 bytes | 
| コンパイル時間 | 429 ms | 
| コンパイル使用メモリ | 28,416 KB | 
| 実行使用メモリ | 7,324 KB | 
| 最終ジャッジ日時 | 2025-03-28 16:56:00 | 
| 合計ジャッジ時間 | 10,142 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | RE * 65 | 
コンパイルメッセージ
main.cpp:12:25: warning: integer constant is too large for its type
   12 |         long long min = 99999999999999999999;
      |                         ^~~~~~~~~~~~~~~~~~~~
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",&val);
      |         ~~~~~^~~~~~~~~~~
main.cpp:9:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 |                 scanf("%lld",&arr[i]);
      |                 ~~~~~^~~~~~~~~~~~~~~~
            
            ソースコード
#include <stdio.h>
int main(){
	int val = 0;
	scanf("%d",&val);
	
	long long arr[val];
	for(int i = 0;i < val;i ++){
		scanf("%lld",&arr[i]);
	}
	
	long long min = 99999999999999999999;
	for(int i = 0;i < val;i ++){
		if(min > arr[i]){
			min = arr[i];
		}
	}
	
	for(int i = 0;i < min;i ++){
		int count = 0;
		for(int j = 0;j < val;j ++){
			if(j % i != 0){
				count++;
				break;
			}
		}
		if(count == 0){
			for(int j = 0;j < val;j ++){
				printf("%lld",arr[j] / i);
			}
		}
	}
}
            
            
            
        