Khá gần đây, một học sinh rất thông minh có tên là Ban giám khảo quyết định rằng bài giảng nhàm chán, vì vậy ông đã tải về một trò chơi gọi là "Black Square" trên điện thoại màn hình cảm ứng siêu mát mẻ của mình. Trong trò chơi này, màn hình của điện thoại được chia thành bốn dải dọc. Mỗi thứ hai, một hình vuông màu đen xuất hiện trên một số các dải. Theo các quy tắc của trò chơi, ban giám khảo phải sử dụng thứ hai này để chạm vào dải tương ứng để làm cho vuông đi. Khi ban giám khảo là cả thông minh và lười biếng, ông ta tính rằng ông chất thải chính xác ai calo trên chạm vào dải thứ i. Bạn đã có một chuỗi s, mô tả quá trình của trò chơi và số a1, a2, a3, a4. Tính toán bao nhiêu calo Jury cần phải tiêu diệt tất cả các hình vuông?
đang được dịch, vui lòng đợi..