首页 > TAG信息列表 > Pineapple

CF697A Pineapple Incident

https://www.luogu.com.cn/problem/CF697A涉及知识点:模拟,数学,枚举暴力橙色题 思路: 首先,假设菠萝从时间0开始叫,则想要吃的时间变为x-t。 然后,菠萝叫的时间变为0(原x),s,s+1,2s,2s+1. 就可以得到下面的极简代码: #include<bits/stdc++.h> using namespace std; int main(){