CF
1
__meteor
对于未来, 我只是一个孩子;
展开
-
stripe2
C. Stripe 2time limit per test1 secondmemory limit per test64 megabytesinputstandard inputoutputstandard outputOnce Bob took a paper stripe of n squares (the height of the stripe is 1 square). In each...原创 2018-03-11 09:25:51 · 233 阅读 · 0 评论 -
Codeforces Round #479 (Div. 3)
D:Divide by three, multiply by two 除了这种做法还可以通过建图的方式#include<bits/stdc++.h>using namespace std;typedef long long ll;ll num[110], ans[110];int n, flag=0;map<ll , int >mp;bool dfs(...原创 2018-05-08 19:19:05 · 110 阅读 · 0 评论 -
Codeforces Round #499 (Div. 2) F-Mars rover
传送门思路:题意是说,火箭这个系统是用一颗树来表示的,树的叶子节点是输入,非叶子节点是一个逻辑判断。然后问你如果修改一个叶子节点的值。结果会变成什么。 叶子节点按从小到大输出修改该节点后 一号节点的值是多少。其实是一个逻辑题。某一个节点的值会不会受到子节点的值影响,就是看子节点修改后会不会对该节点的值产生影响。如果会产生影响,那么这课子树的叶子节点就有可能产生影响。若不产生影响, 那么这棵...原创 2018-07-27 14:36:36 · 194 阅读 · 0 评论