結果
| 問題 | No.2091 Shio Ramen (Easy) |
| ユーザー |
kou_kkk
|
| 提出日時 | 2025-08-03 09:07:15 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 92 ms / 2,000 ms |
| + 897µs | |
| コード長 | 179 bytes |
| 記録 | |
| コンパイル時間 | 289 ms |
| コンパイル使用メモリ | 21,408 KB |
| 実行使用メモリ | 15,868 KB |
| 最終ジャッジ日時 | 2026-07-13 19:16:39 |
| 合計ジャッジ時間 | 3,242 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 |
ソースコード
n, s, k = map(int, input().split())
ans = 'Unlucky!'
d = k + 1
for i in range(n):
x = abs(int(input()) - s)
if x < d:
ans = str(i + 1)
d = x
print(ans)
kou_kkk