20年3月26日 校隊首次模擬賽(CodeForces 1020)

首先按照慣例,我先來扯點別的,大佬就是牛逼,Rank1的學長,Rank1並不耽誤水羣,我就不一樣了,就做出來前兩個題,然後第一題還是第三遍A掉的(應該聲明:本次比賽應該是來自CodeForces的題目)
還有就是讀題永遠是我過不去的傷
在這裏插入圖片描述

A - New Building for SIS

You are looking at the floor plan of the Summer Informatics School’s new building. You were tasked with SIS logistics, so you really care about travel time between different locations: it is important to know how long it would take to get from the lecture room to the canteen, or from the gym to the server room.
在這裏插入圖片描述
The building consists of n towers, h floors each, where the towers are labeled from 1 to n, the floors are labeled from 1 to h. There is a passage between any two adjacent to

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章