洛谷P1095守望者的逃離題解--zhengjun

題面傳送門c++ 思路 由於跑和使用魔法不能同時執行,因此能夠先處理光光使用魔法,而後再處理跑的狀況web 代碼 #include<bits/stdc++.h> using namespace std; int m,s,t; int f[300001]; int main(){ scanf("%d%d%d",&m,&s,&t); for(int i=1;i<=t;i++){ if(m>=
相關文章
相關標籤/搜索