結果
| 問題 |
No.1291 小手調べ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-11-23 22:32:25 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 221 bytes |
| コンパイル時間 | 526 ms |
| コンパイル使用メモリ | 82,688 KB |
| 実行使用メモリ | 80,128 KB |
| 最終ジャッジ日時 | 2024-07-23 18:01:24 |
| 合計ジャッジ時間 | 1,675 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 4 |
ソースコード
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)