結果
| 問題 | No.3252 Constrained Moving |
| コンテスト | |
| ユーザー |
miztom
|
| 提出日時 | 2025-09-06 02:10:55 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 95 ms / 2,000 ms |
| + 901µs | |
| コード長 | 151 bytes |
| 記録 | |
| コンパイル時間 | 250 ms |
| コンパイル使用メモリ | 96,108 KB |
| 実行使用メモリ | 115,840 KB |
| 最終ジャッジ日時 | 2026-07-14 17:41:40 |
| 合計ジャッジ時間 | 6,006 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 30 |
ソースコード
n,s,t,k=map(int,input().split()) a=[*map(int,input().split())];m=min(a) if a[s-1]+a[t-1]<=k:print(1) elif m+a[s-1]<=k>=m+a[t-1]:print(2) else:print(-1)
miztom