結果
問題 | No.1285 ゴミ捨て |
ユーザー | masayamatu |
提出日時 | 2020-11-23 22:32:38 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 221 bytes |
コンパイル時間 | 273 ms |
コンパイル使用メモリ | 87,192 KB |
実行使用メモリ | 95,912 KB |
最終ジャッジ日時 | 2023-10-01 00:24:28 |
合計ジャッジ時間 | 7,818 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 211 ms
88,236 KB |
testcase_02 | AC | 210 ms
87,928 KB |
testcase_03 | AC | 212 ms
87,972 KB |
testcase_04 | AC | 214 ms
88,104 KB |
testcase_05 | AC | 213 ms
88,132 KB |
testcase_06 | AC | 212 ms
88,528 KB |
testcase_07 | WA | - |
testcase_08 | AC | 237 ms
92,004 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | AC | 241 ms
92,408 KB |
testcase_17 | AC | 242 ms
92,288 KB |
testcase_18 | AC | 246 ms
91,916 KB |
testcase_19 | WA | - |
testcase_20 | AC | 247 ms
91,936 KB |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
ソースコード
from decimal import * import math n = int(input()) A = [] count = 1 for i in range(n): A.append(int(input())) A.sort() a=A[0] for i in range(1,n): if A[i] - a < 1: count += 1 a =A[i] print(count)