結果
| 問題 | No.2091 Shio Ramen (Easy) |
| ユーザー |
|
| 提出日時 | 2022-10-16 02:13:27 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 2,000 ms |
| コード長 | 320 bytes |
| 記録 | |
| コンパイル時間 | 276 ms |
| コンパイル使用メモリ | 85,376 KB |
| 実行使用メモリ | 55,552 KB |
| 最終ジャッジ日時 | 2026-03-19 19:36:17 |
| 合計ジャッジ時間 | 1,449 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 |
ソースコード
from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math
input = sys.stdin.readline
N,S,K = map(int,input().split())
A = [int(input()) for _ in range(N)]
X = [(abs(A[i]-S),i) for i in range(N)]
X.sort()
if X[0][0]<=K:
print(X[0][1]+1)
else:
print('Unlucky!')