A. Pouring Rain time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A lot of people in Berland hates rain, but you do not. Rain pacifies, puts your thoughts in order. By these years you have de…
题目链接: A. Pouring Rain time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A lot of people in Berland hates rain, but you do not. Rain pacifies, puts your thoughts in order. By these years you h…
一.题目链接:http://codeforces.com/contest/988/problem/F 二.题面 三.思路 很明显而且比较能想到的$dp$. 四.代码实现 #include<bits/stdc++.h> using namespace std; #define fst first #define snd second #define MAXN 2018 typedef pair<int, int> PII; typedef long long LL; int dest…
Rain and Umbrellas 题意:某同学从x=0的点走到x=a的点,路上有几段路程是下雨的, 如果他需要经过这几段下雨的路程, 需要手上有伞, 每一把伞有一个重量, 求走到重点重量×路程的最小花费. 题解:暴力,如果某段路程需要带伞,就直接去找前面有伞的地点,如果不需要伞就直接往后走就好了. 代码: #include<bits/stdc++.h> using namespace std; const int N = 1e5; const int INF = 0x3f3f3f3f; i…
In this lesson you will learn to give instructions. 这节课你将将学会给出指示. 课上内容(Lesson) 词汇(Key Word ) bell pepper 灯笼椒 # bell n. 铃,钟:钟声,铃声:钟状物 soy sauce 酱油 vinegar n.醋 chili n. 红辣椒,辣椒 onion n.洋葱 # green onion 葱花,叶用葱 garlic n.大蒜 ginger n.姜 ring bell…
美国当地时间2018日11月8日,著名科幻作家刘慈欣被授予2018年度克拉克想象力贡献社会奖(Clarke Award for Imagination in Service to Society),表彰其在科幻小说创作领域做出的贡献. 据了解,这是继2015年凭借<三体>获荣获雨果奖最佳长篇小说奖后,刘慈欣再一次获得科幻国际大奖. 获奖感言双语全文: 先生们.女士们,晚上好, Ladies and Gentleman, Good evening! 很荣幸获得克拉克想象力服务社会奖. It's…