随笔分类 - STL
摘要:一、string初始化 void solve(){ string str = "Hello world" ; char cstr[] = "abcde"; string s1(str);//string拷贝string cout << s1 << endl; string s2(str , 2);/
阅读全文
摘要:https://codeforces.com/contest/1301/problem/D 题意:给出n*m(1<=n,m<=500)格子,要求走k(1e9)步,问能否实现,能则输出步骤(<3000).规则:同一个格子同一方向只能走一步. 解法:根据欧拉图可知,最多可走4*n*m-2*n-2*m步。
阅读全文
摘要:一、string初始化 void solve(){ string str = "Hello world" ; char cstr[] = "abcde"; string s1(str);//string拷贝string cout << s1 << endl; string s2(str , 2);/
阅读全文
摘要:http://codeforces.com/problemset/problem/1154/E E. Two Teams time limit per test 2 seconds memory limit per test 256 megabytes input standard input ou
阅读全文
摘要:https://nanti.jisuanke.com/t/41384 There are nnn points in an array with index from 111 to nnn, and there are two operations to those points. 1: 1 x1
阅读全文
摘要:http://codeforces.com/gym/101911/problem/A Recently Monocarp got a job. His working day lasts exactly m minutes. During work, Monocarp wants to drink
阅读全文
摘要:http://codeforces.com/gym/101911/problem/C Recently Monocarp has created his own mini-laboratory! The laboratory contains n bacteria. Monocarp knows t
阅读全文
摘要:M - Violet Snow Gym - 101350M Every year, an elephant qualifies to the Arab Collegiate Programming Competition. He graduated this year, but that’s irr
阅读全文
摘要:1205 单词翻转 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 青铜 Bronze 题目描述 Description 给出一个英语句子,希望你把句子里的单词顺序都翻转过来 输入描述 Input Description 输入包括一个英语句子。 输出描述 Output Descri
阅读全文
摘要:D - 4 Gym - 100989D In this cafeteria, the N tables are all ordered in one line, where table number 1 is the closest to the window and table number N
阅读全文

浙公网安备 33010602011771号