結果

問題 No.1231 Make a Multiple of Ten
ユーザー IHIH
提出日時 2020-09-20 20:45:56
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 219 bytes
コンパイル時間 1,030 ms
コンパイル使用メモリ 86,896 KB
実行使用メモリ 698,164 KB
最終ジャッジ日時 2023-09-06 16:32:03
合計ジャッジ時間 6,017 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 RE -
testcase_02 RE -
testcase_03 AC 70 ms
71,320 KB
testcase_04 MLE -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int,input().split()))
a.sort()
i = 0
s = 0
ans = []
while True:
  if i == n-1:
    break
  else:
    s += a[i]
    if s % 10 == 0:
      ans.append(i)
    else:
      i += 1
print(max(ans))
0