
思维
文章平均质量分 57
Achanss
My life is good, and u just make it better!
展开
-
UPC-7221: Flower(思维)
7221: Flower 时间限制: 1 Sec 内存限制: 128 MB 提交: 137 解决: 35 [提交] [状态] [讨论版] [命题人:admin] 题目描述 Rabbit loves flowers very much and she plants n pots of flowers in her house. But she never prunes them becau...原创 2018-09-13 19:57:02 · 793 阅读 · 0 评论 -
The 2018 ACM-ICPC Asia Qingdao Regional Contest, Online _H_Traveling on the Axis(前缀+细节)
Traveling on the Axis Time Limit: 1 Second Memory Limit: 65536 KB 题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5809 BaoBao is taking a walk in the interval o...原创 2018-09-17 20:48:22 · 214 阅读 · 0 评论 -
YTU_3314: Math Show(暴力找解域)
Math Show time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Polycarp takes part in a math show. He is given n tasks, each consists of k subtasks,...转载 2018-09-14 17:33:41 · 387 阅读 · 0 评论 -
Wannafly summer camp Day2 —— Princess Principal (栈模拟 + 有技巧的离线区间查询)
9517: Princess Principal 时间限制: 2 Sec 内存限制: 1024 MB 提交: 214 解决: 42 [提交] [状态] [讨论版] [命题人:admin] 题目描述 阿尔比恩王国(the Albion Kingdom)潜伏着一群代号“白鸽队(Team White Pigeon)”的间谍。在没有任务的时候,她们会进行各种各样的训练,比如快速判断一个文档有...原创 2018-10-08 13:12:20 · 429 阅读 · 0 评论 -
codeforce—1054D. Changing Array
codeforce—1054D. Changing Array 传送门 D. Changing Array time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output At a break Vanya came to the class and sa...原创 2018-10-19 22:31:49 · 604 阅读 · 0 评论 -
The 2018 ACM-ICPC Asia Qingdao Regional Contest —— Function and Function (水题)
#include<bits/stdc++.h> using namespace std; int TAB[10] = { 1,0,0,0,1,0,1,0,2,1}; int get_val(int x) { if(!x) return 1; int ret = 0; while(x) { ret += TAB[x%10]; x/=10; } return ret; ...原创 2018-11-06 13:38:41 · 264 阅读 · 0 评论 -
The 2018 ACM-ICPC Asia Qingdao Regional Contest —— Flippy Sequence(思维 + 签到)
题目链接 /* * @Author: Achan * @Date: 2018-11-03 20:37:11 * @Last Modified by: Achan * @Last Modified time: 2018-11-05 18:28:24 */ #include<bits/stdc++.h> #include<algorithm> #include&原创 2018-11-05 18:33:15 · 480 阅读 · 0 评论 -
蒜厂年会(环中最大连续和)
#include<bits/stdc++.h> using namespace std; typedef long long ll; int main(void) { int n; cin >> n; vector <int > a(n+1); ll sum = 0; for(int i = 1 ; i <= n; i++)...转载 2019-03-22 21:37:11 · 305 阅读 · 0 评论 -
2018"百度之星"程序设计大赛 - 初赛
/* * @Author: Achan * @Date: 2019-08-16 22:00:16 * @Last Modified by: Achan * @Last Modified time: 2019-08-17 00:04:24 */ #include<bits/stdc++.h> using namespace std; int main(void) { in...原创 2019-08-17 00:08:44 · 240 阅读 · 0 评论