結果

問題 No.339 何人が回答したのか
コンテスト
ユーザー soupesuteaka
提出日時 2016-02-24 17:15:42
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 87 ms / 1,000 ms
コード長 295 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 191 ms
コンパイル使用メモリ 77,572 KB
最終ジャッジ日時 2025-12-03 19:30:15
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 61
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#coding: UTF-8

import sys
from operator import itemgetter
import re
import itertools
import math

def gcd(a, b):
	if (b==0):
	 return a
	else:
		return gcd(b,a%b)

N = input()
percent = [None]*N
for i in range(0,N):
	percent[i] = input()

g = 100
for x in percent:
	g = gcd(g,x)

print 100 / g
0