随笔分类 -  STL

摘要:一、string初始化 void solve(){ string str = "Hello world" ; char cstr[] = "abcde"; string s1(str);//string拷贝string cout << s1 << endl; string s2(str , 2);/ 阅读全文
posted @ 2020-03-25 10:26 无名菜鸟1 阅读(293) 评论(0) 推荐(0)
摘要:https://codeforces.com/contest/1301/problem/D 题意:给出n*m(1<=n,m<=500)格子,要求走k(1e9)步,问能否实现,能则输出步骤(<3000).规则:同一个格子同一方向只能走一步. 解法:根据欧拉图可知,最多可走4*n*m-2*n-2*m步。 阅读全文
posted @ 2020-03-05 21:46 无名菜鸟1 阅读(222) 评论(0) 推荐(0)
摘要:一、string初始化 void solve(){ string str = "Hello world" ; char cstr[] = "abcde"; string s1(str);//string拷贝string cout << s1 << endl; string s2(str , 2);/ 阅读全文
posted @ 2020-03-03 01:36 无名菜鸟1 阅读(196) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2019-11-08 11:16 无名菜鸟1 阅读(192) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2019-09-08 20:36 无名菜鸟1 阅读(158) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2019-08-21 21:55 无名菜鸟1 阅读(221) 评论(0) 推荐(0)
摘要:http://codeforces.com/gym/101911/problem/C Recently Monocarp has created his own mini-laboratory! The laboratory contains n bacteria. Monocarp knows t 阅读全文
posted @ 2019-08-21 21:14 无名菜鸟1 阅读(292) 评论(0) 推荐(0)
摘要:M - Violet Snow Gym - 101350M Every year, an elephant qualifies to the Arab Collegiate Programming Competition. He graduated this year, but that’s irr 阅读全文
posted @ 2019-08-02 19:57 无名菜鸟1 阅读(402) 评论(0) 推荐(0)
摘要:1205 单词翻转 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 青铜 Bronze 题目描述 Description 给出一个英语句子,希望你把句子里的单词顺序都翻转过来 输入描述 Input Description 输入包括一个英语句子。 输出描述 Output Descri 阅读全文
posted @ 2019-07-27 19:42 无名菜鸟1 阅读(1344) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2019-07-20 20:28 无名菜鸟1 阅读(412) 评论(0) 推荐(0)