Mote8848
Mote8848
全部文章
cf
hdu(6)
noi(9)
Unity3D 学习笔记(2)
数据结构学习笔记(7)
未归档(7)
牛客(15)
菜鸡的acm(10)
归档
标签
去牛客网
登录
/
注册
弟弟tp的博客
一个菜鸡加臭弟弟
全部文章
/ cf
(共7篇)
Codeforces Global Round B Tape
题目:点我转移 【题意】 x轴上有m个连续的点,从1标号到m.其中有n个点是特殊点。让你用k段区间将这n个点覆盖。要求区间的总长度最小。 解: 一开始假设我们需要n个胶带(即包含每一个点)然后因为m<=n所以可能胶带不够用。那么就得一个胶带跨过两个点。怎么选择最好呢?可以把b[i]-b...
2019-02-10
0
468
Codeforces Global Round 1 A. Parity
这个运用一点数学知识就能解决偶数*偶数结果是偶数,奇数乘偶数也是偶数,奇数乘奇数是奇数,然后奇数个奇数相加的到奇数,偶数和奇数相加,如果奇数是奇数个那么这个最终结果就是奇数, 反之结果就是偶数 所以看a*b的奇偶性 如果是奇就是说明a 和b都是奇数,那么再在后面乘奇数答案绝对是奇数 反之a*...
2019-02-10
0
524
Cutting Codeforces Round #493 (Div. 2)
#include<cstdio> #include<cstring> #include<algorithm> #include<iostream> #include<string> #include<vector> #inclu...
2019-01-22
0
432
codeforce 985B Switches and Lamps(暴力+思维)
原题链接:点我转移 #include<cstdio> #include<cstring> #include<algorithm> #include<iostream> #include<string> #include<vec...
2019-01-21
0
516
Codeforces Round #494 (Div. 3) C. Intense Heat
The heat during the last few days has been really intense. Scientists from all over the Berland study how the temperatures and weather change, and the...
2019-01-21
0
572
Codeforces - 934A A Compatible Pair(暴力)
A. A Compatible Pairtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output Nian is a monster which liv...
2019-01-20
0
451
C. Postcard
就是直接肛就对了 1 #include<bits/stdc++.h> 2 using namespace std; 3 int main() 4 { 5 int n,len,sum=0,sum1=0,sum2=0;///分别记录字母的数量,?的数量,*的数量 ...
2019-01-07
0
434