結果
| 問題 | No.3252 Constrained Moving |
| コンテスト | |
| ユーザー |
ゼット
|
| 提出日時 | 2025-09-05 22:33:56 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 90 ms / 2,000 ms |
| + 724µs | |
| コード長 | 217 bytes |
| 記録 | |
| コンパイル時間 | 252 ms |
| コンパイル使用メモリ | 95,984 KB |
| 実行使用メモリ | 115,840 KB |
| 最終ジャッジ日時 | 2026-07-14 16:00:56 |
| 合計ジャッジ時間 | 5,082 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)
ゼット