結果

問題 No.339 何人が回答したのか
コンテスト
ユーザー soupesuteaka
提出日時 2016-02-24 17:15:42
言語 PyPy2
(7.3.20)
コンパイル:
pypy2 -m py_compile _filename_
実行:
/usr/bin/pypy2 Main.pyc
結果
AC  
実行時間 53 ms / 1,000 ms
+ 282µs
コード長 295 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 58 ms
コンパイル使用メモリ 81,252 KB
実行使用メモリ 80,896 KB
最終ジャッジ日時 2026-07-18 03:23:36
合計ジャッジ時間 5,983 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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