結果
| 問題 | No.339 何人が回答したのか |
| コンテスト | |
| ユーザー |
takatowin
|
| 提出日時 | 2017-01-21 20:49:53 |
| 言語 | C90(gcc15) (gcc 15.2.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 465 bytes |
| 記録 | |
| コンパイル時間 | 181 ms |
| コンパイル使用メモリ | 38,812 KB |
| 最終ジャッジ日時 | 2026-02-24 00:07:06 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 RE * 2 |
| other | RE * 61 |
ソースコード
#include<stdio.h>
#include<string.h>
int max(int a,int b){
int x=1,i;
if(a==1)
return b;
if(a>b){
int temp;
temp=a;
a=b;
b=temp;
}
for(i=1;i<=a;i++)
if(a%i==0 && b%i==0){
x=i;
printf("%d ",i );
}
return x;
}
int main(void){
int n,temp=1;
scanf("%d",&n);
int a[n],i;
for(i=0;i<n;i++)
scanf("%d",&a[i]);
if(n==1){
printf("1\n");
return 0;
}
for(i=0;i<n;i++)
temp=max(temp,a[i]);
printf("%d\n",100/temp);
}
takatowin