結果

問題 No.339 何人が回答したのか
ユーザー mathshabmathshab
提出日時 2017-06-29 13:06:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 323 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-04-15 04:49:32
合計ジャッジ時間 3,455 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#339 how many people answer
#if difference is 0
N=int(input())
A=[int(input())for i in range(N)]
m=A[0]-A[1]
for i in range(1,N-1):
    d=A[i]-A[i+1]
    if d!=0:
        if d<0:
            d*=-1
        if m>d:
            m=d
if A[N-1]!=0:
    if m>A[N-1]:
        m=A[N-1]
S=0
for i in range(N):
    S+=A[i]//m
print(S)
0