結果
| 問題 |
No.3252 Constrained Moving
|
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2025-09-05 21:22:54 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 143 ms / 2,000 ms |
| コード長 | 181 bytes |
| コンパイル時間 | 199 ms |
| コンパイル使用メモリ | 82,524 KB |
| 実行使用メモリ | 107,876 KB |
| 最終ジャッジ日時 | 2025-09-05 21:23:00 |
| 合計ジャッジ時間 | 5,430 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 30 |
ソースコード
n,s,t,K=map(int,input().split()) a=list(map(int,input().split())) s=a[s-1] t=a[t-1] a.sort() if s+t<=K: print(1) exit() if s+a[0]<=K and t+a[0]<=K: print(2) exit() print(-1)
sasa8uyauya