22strb - THTB Sơn Trà 2022
Mắc đèn
Công thức .
Các bạn thử lấy vở ô ly và vẽ test VD để hiểu
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Bài 2
Ngày chia hết cho là ngày cả 2 máy đều nghỉ
Bài 3
Subtask 1 (50%):
Đề bảo chọn ra 3 vị trí –> Dùng 3 vòng lặp For
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
Subtask 1.5: (thanks hoangtieuho)
Subtask 2:
Chỉ chạy một vòng lặp for
j để cố định
Cần tìm (nhanh):
- là vị trí của phần tử lớn nhất TRƯỚC
- là vị trí của phần tử lớn nhất SAU
CTDL: Prefix-sum. Chi tiết: https://www.youtube.com/watch?v=gK4sTB4aznA&t=1650s
Bài 4:
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
Subtask 1
Đặt L: mực nước
Subtask 2
Mỗi tòa nhà sẽ có một khoảng thời gian liên tiếp mà nó bị cô độc.
pigbank - lqdoj
https://wiki.vnoi.info/vi/algo/data-structures/prefix-sum-and-difference-array
Subtask 3
và
và
Áp dụng kĩ thuật nén số: https://viblo.asia/p/roi-rac-hoa-nen-so-38X4E9QA4N2