結果
問題 |
No.2091 Shio Ramen (Easy)
|
ユーザー |
![]() |
提出日時 | 2025-08-03 09:07:15 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 2,000 ms |
コード長 | 179 bytes |
コンパイル時間 | 392 ms |
コンパイル使用メモリ | 11,904 KB |
実行使用メモリ | 10,240 KB |
最終ジャッジ日時 | 2025-08-03 09:07:17 |
合計ジャッジ時間 | 2,119 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)