摘要: Problem I. Wiki with Special Poker CardsInput file: standard input Time limit: 1 secondOutput file: standard output Memory limit: 256 megabytes"耶,我赢了! 阅读全文
posted @ 2019-12-20 21:19 gulangyuzzz 阅读(435) 评论(0) 推荐(0) 编辑
摘要: Problem F. Wiki with StringInput file: standard input Time limit: 1 secondOutput file: standard output Memory limit: 256 megabytes现在有一个字符串s, s中只包含数字字符 阅读全文
posted @ 2019-12-20 20:19 gulangyuzzz 阅读(224) 评论(0) 推荐(0) 编辑
摘要: Problem H. Wiki with Herbal MedicineInput file: standard input Time limit: 1 secondOutput file: standard output Memory limit: 256 megabytes题目描述前方高能,又见 阅读全文
posted @ 2019-12-19 16:41 gulangyuzzz 阅读(303) 评论(0) 推荐(0) 编辑
摘要: Problem J. Wiki with 35Input file: standard input Time limit: 1 secondOutput file: standard output Memory limit: 256 megabytes从前,有一对夫妻生了五胞胎,这对夫妻为了让这五兄 阅读全文
posted @ 2019-12-19 15:48 gulangyuzzz 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 双人博弈贪吃蛇游戏 1 #include <cstdio> 2 #include <cstring> 3 #include <iostream> 4 #include <algorithm> 5 #include <jsoncpp/json.h> 6 #include <cmath> 7 #incl 阅读全文
posted @ 2019-12-19 12:17 gulangyuzzz 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 简单计算器 codeup1918 918: 简单计算器 时间限制: 1 Sec 内存限制: 32 MB提交: 2063 解决: 846[提交][状态][讨论版][命题人:外部导入] 题目描述 读入一个只包含 +, -, *, / 的非负整数计算表达式,计算该表达式的值。 输入 测试输入包含若干测试用 阅读全文
posted @ 2019-12-18 20:24 gulangyuzzz 阅读(495) 评论(0) 推荐(0) 编辑
摘要: 01背包问题 dfs解法 1 #include <iostream> 2 #include <cstring> 3 #include <algorithm> 4 #include <cmath> 5 6 using namespace std ; 7 8 const int N = 1010 ; 9 阅读全文
posted @ 2019-12-17 18:46 gulangyuzzz 阅读(709) 评论(0) 推荐(0) 编辑
摘要: 1057 Stack (30分) Stack is one of the most fundamental data structures, which is based on the principle of Last In First Out (LIFO). The basic operatio 阅读全文
posted @ 2019-12-16 17:47 gulangyuzzz 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <algorithm> 3 #include <cstring> 4 5 using namespace std ; 6 7 const int N = 100010 ; 8 9 struct node{ 10 int val,pos 阅读全文
posted @ 2019-12-16 13:28 gulangyuzzz 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 给定一个有N个正整数的序列A(N<=10^5,A[i]<=10^5),对序列中的每一个数,求出序列中它左边比它小的数的个数。 思路:树状数组的经典应用(裸题) 1 #include <iostream> 2 #include <algorithm> 3 #include <cstring> 4 5 阅读全文
posted @ 2019-12-16 12:45 gulangyuzzz 阅读(515) 评论(0) 推荐(0) 编辑