結果

問題 No.339 何人が回答したのか
ユーザー takatowintakatowin
提出日時 2017-01-21 20:46:29
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 430 bytes
コンパイル時間 917 ms
コンパイル使用メモリ 25,152 KB
実行使用メモリ 4,388 KB
最終ジャッジ日時 2023-08-24 19:22:41
合計ジャッジ時間 2,855 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
4,380 KB
testcase_01 AC 1 ms
4,384 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 0 ms
4,384 KB
testcase_05 AC 0 ms
4,380 KB
testcase_06 WA -
testcase_07 AC 0 ms
4,380 KB
testcase_08 AC 0 ms
4,384 KB
testcase_09 AC 0 ms
4,384 KB
testcase_10 WA -
testcase_11 AC 0 ms
4,380 KB
testcase_12 WA -
testcase_13 AC 1 ms
4,384 KB
testcase_14 AC 1 ms
4,380 KB
testcase_15 WA -
testcase_16 AC 0 ms
4,384 KB
testcase_17 AC 1 ms
4,380 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 1 ms
4,384 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 1 ms
4,380 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 1 ms
4,380 KB
testcase_28 AC 0 ms
4,380 KB
testcase_29 WA -
testcase_30 AC 1 ms
4,384 KB
testcase_31 AC 0 ms
4,380 KB
testcase_32 AC 1 ms
4,380 KB
testcase_33 AC 0 ms
4,380 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 0 ms
4,384 KB
testcase_38 AC 0 ms
4,380 KB
testcase_39 WA -
testcase_40 AC 1 ms
4,384 KB
testcase_41 AC 1 ms
4,384 KB
testcase_42 AC 1 ms
4,384 KB
testcase_43 WA -
testcase_44 AC 1 ms
4,380 KB
testcase_45 WA -
testcase_46 WA -
testcase_47 AC 1 ms
4,380 KB
testcase_48 AC 1 ms
4,384 KB
testcase_49 AC 1 ms
4,380 KB
testcase_50 AC 1 ms
4,388 KB
testcase_51 AC 1 ms
4,380 KB
testcase_52 AC 0 ms
4,380 KB
testcase_53 AC 1 ms
4,380 KB
testcase_54 AC 0 ms
4,380 KB
testcase_55 WA -
testcase_56 AC 1 ms
4,380 KB
testcase_57 WA -
testcase_58 AC 1 ms
4,380 KB
testcase_59 AC 0 ms
4,380 KB
testcase_60 AC 1 ms
4,380 KB
testcase_61 AC 1 ms
4,380 KB
testcase_62 AC 1 ms
4,388 KB
testcase_63 AC 1 ms
4,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
#include<string.h>
int max(int a,int b){
  int x=1,i;
  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;
    }
  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-1;i++)
  temp=max(a[i],a[i+1]);
printf("%d\n",100/temp);
return 0;
}

0