摘要: ``` #include #include #include #include #define int long long using namespace std; const int N=30000+10; const int mod=1000007; int a[N]; int read() { int res=0,ch,flag=0; if((ch=getchar())=='-') //判断 阅读全文
posted @ 2020-03-23 18:38 晴屿 阅读(90) 评论(0) 推荐(0) 编辑
摘要: ``` #include #include #include #include using namespace std; const int N=300000+10; const int mod=1000007; //直接dp //dp[i]表示放了多少花 int dp[110]; int a[N]; int m,n; int main() { cin>>n>>m; for(int i=1;i>a 阅读全文
posted @ 2020-03-23 18:02 晴屿 阅读(100) 评论(0) 推荐(0) 编辑
摘要: ``` #include #include #include #include using namespace std; const int N=300000+10; int dp[N]; int m,s,t; int main() { cin>>m>>s>>t; for(int i=1;i=10) dp[i]=dp[i-1]+60,m-=10; else dp[i]=dp[i-1],m+=4; 阅读全文
posted @ 2020-03-23 17:29 晴屿 阅读(118) 评论(0) 推荐(0) 编辑