結果

問題 No.339 何人が回答したのか
ユーザー r_ishida
提出日時 2025-08-02 08:28:30
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 36 ms / 1,000 ms
コード長 787 bytes
コンパイル時間 257 ms
コンパイル使用メモリ 12,160 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2025-08-02 08:28:35
合計ジャッジ時間 4,794 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 61
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
import sys
def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int, sys.stdin.readline().rstrip().split())
def LI(): return list(map(int, sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())

n = I()
a = []

for i in range(n):
    a.append(I())

s_2 = 1
for i in range(n):
    if a[i]%2 != 0:
        s_2 = 0

s_4 = 1
for i in range(n):
    if a[i]%4 != 0:
        s_4 = 0

s_5 = 1
for i in range(n):
    if a[i]%5 != 0:
        s_5 = 0

s_25 = 1
for i in range(n):
    if a[i]%25 != 0:
        s_25 = 0

ans = 100
if s_4 == 1:
    ans = ans // 4
elif s_2 == 1:
    ans = ans // 2

if s_25 == 1:
    ans = ans // 25
elif s_5 == 1:
    ans = ans // 5

print(ans)
0