結果

問題 No.1586 Equal Array
ユーザー tcltktcltk
提出日時 2021-10-21 01:00:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 160 ms / 1,000 ms
コード長 466 bytes
コンパイル時間 173 ms
コンパイル使用メモリ 81,296 KB
実行使用メモリ 102,592 KB
最終ジャッジ日時 2023-10-20 11:15:08
合計ジャッジ時間 5,788 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
85,832 KB
testcase_01 AC 131 ms
85,840 KB
testcase_02 AC 131 ms
85,832 KB
testcase_03 AC 130 ms
85,836 KB
testcase_04 AC 155 ms
100,440 KB
testcase_05 AC 154 ms
100,444 KB
testcase_06 AC 158 ms
102,260 KB
testcase_07 AC 160 ms
102,264 KB
testcase_08 AC 159 ms
102,268 KB
testcase_09 AC 158 ms
102,268 KB
testcase_10 AC 158 ms
102,272 KB
testcase_11 AC 130 ms
85,836 KB
testcase_12 AC 131 ms
85,836 KB
testcase_13 AC 160 ms
102,256 KB
testcase_14 AC 157 ms
102,256 KB
testcase_15 AC 157 ms
102,252 KB
testcase_16 AC 156 ms
102,256 KB
testcase_17 AC 130 ms
85,832 KB
testcase_18 AC 157 ms
102,300 KB
testcase_19 AC 157 ms
102,592 KB
testcase_20 AC 130 ms
85,840 KB
testcase_21 AC 129 ms
85,836 KB
testcase_22 AC 130 ms
85,832 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
# from typing import *

import sys
import io
import math
import collections
import decimal
import itertools
import bisect
import heapq


def input():
    return sys.stdin.readline()[:-1]


# sys.setrecursionlimit(1000000)

# _INPUT = """# paste here...
# """
# sys.stdin = io.StringIO(_INPUT)

INF = 10**10

YES = 'Yes'
NO = 'No'


N = int(input())
A = list(map(int, input().split()))
if sum(A) % N == 0:
    print('Yes')
else:
    print('No')
0