結果
問題 |
No.3252 Constrained Moving
|
ユーザー |
![]() |
提出日時 | 2025-09-05 23:52:29 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 102 ms / 2,000 ms |
コード長 | 177 bytes |
コンパイル時間 | 542 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 32,276 KB |
最終ジャッジ日時 | 2025-09-05 23:52:35 |
合計ジャッジ時間 | 5,370 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 30 |
ソースコード
N,S,T,K=map(int,input().split()) S-=1 T-=1 A=list(map(int,input().split())) m=min(A) if A[S]+A[T]<=K: print(1) elif m+A[S]<=K and m+A[T]<=K: print(2) else: print(-1)