模拟
「已注销」
这个作者很懒,什么都没留下…
展开
-
2020上海高校程序设计竞赛暨第18届上海大学程序设计联赛夏季赛(题解)
传送门 A.同源 这题只需要两个for循环暴力模拟就可以过了 但是有没有大佬在下面讲解一下原理,为什么只要循环到10就能跑出来。。 直接上AC代码: #include <bits/stdc++.h> #define rep(i,a,b) for(int i=a;i<b;i++) #define T int t ;cin >> t;while(t--) using namespace std ; typedef long long ll; typedef unsigned lo原创 2020-08-06 10:59:12 · 297 阅读 · 0 评论 -
2020牛客多校第八场 K Kabaleo Lite
题目链接 Tired of boring WFH (work from home), Apollo decided to open a fast food restaurant, called Kabaleo Lite. The restaurant serves n kinds of food, numbered from 1 to n. The profit for the i-th kind of food is ai . Profit may be negative because it use原创 2020-08-03 20:16:14 · 275 阅读 · 0 评论 -
HDU Leading Robots (2020杭电多校)
题目链接:杭电多校2020 题目描述 Sandy likes to play with robots. He is going to organize a running competition between his robots. And he is going to give some presents to the winners. Robots are arranged in a line. They have their initial position (distance from the s原创 2020-08-02 16:09:09 · 168 阅读 · 0 评论