Bakery 题目链接: http://codeforces.com/contest/707/problem/B Description ``` Masha wants to open her own bakery and bake muffins in one of the n cities numbered from 1 to n. There are m bidirecti...
2023-07-11编程代码Codeforces,div,模拟题目地址:http://codeforces.com/contest/435/problem/C /* 题意:给一组公式,一组数据,计算得到一系列的坐标点,画出折线图:) 模拟题:蛮恶心的,不过也简单,依据公式得知折线一定是一上一下的,...
2023-07-11编程代码Cardiogram,Codeforces,模拟题目传送门 /* 贪心 + 模拟:首先,如果蜡烛的燃烧时间小于最少需要点燃的蜡烛数一定是-1(蜡烛是1秒点一支), num[g[i]]记录每个鬼访问时已点燃的蜡烛数,若不够,tmp为还需要的蜡烛数, ...
2023-07-11编程代码Codeforces,模拟,贪心