結果
| 問題 |
No.3252 Constrained Moving
|
| コンテスト | |
| ユーザー |
ゼット
|
| 提出日時 | 2025-09-05 22:33:56 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 101 ms / 2,000 ms |
| コード長 | 217 bytes |
| コンパイル時間 | 183 ms |
| コンパイル使用メモリ | 82,224 KB |
| 実行使用メモリ | 107,936 KB |
| 最終ジャッジ日時 | 2025-09-05 22:34:01 |
| 合計ジャッジ時間 | 4,492 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 30 |
ソースコード
N,a,b,K=map(int,input().split()) A=list(map(int,input().split())) x=min(A) result=10**10 a-=1 b-=1 if A[a]+A[b]<=K: result=1 if x+A[b]<=K and x+A[a]<=K: result=min(result,2) if result>10: result=-1 print(result)
ゼット