結果
問題 | No.1285 ゴミ捨て |
ユーザー | masayamatu |
提出日時 | 2020-11-23 22:21:46 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 233 bytes |
コンパイル時間 | 266 ms |
コンパイル使用メモリ | 87,300 KB |
実行使用メモリ | 100,232 KB |
最終ジャッジ日時 | 2023-10-01 00:23:29 |
合計ジャッジ時間 | 6,045 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 209 ms
89,144 KB |
testcase_01 | AC | 209 ms
88,876 KB |
testcase_02 | AC | 213 ms
89,124 KB |
testcase_03 | AC | 209 ms
89,152 KB |
testcase_04 | AC | 211 ms
88,968 KB |
testcase_05 | AC | 210 ms
89,000 KB |
testcase_06 | AC | 214 ms
89,752 KB |
testcase_07 | TLE | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
ソースコード
from decimal import * import math n = int(input()) A = [] count = 1 for i in range(n): A.append(int(input())) for i in range(n): for j in range(i+1,n): if abs(A[i] - A[j]) < 2: count += 1 print(count)