上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 33 下一页
摘要: #define HAVE_STRUCT_TIMESPEC#include<bits/stdc++.h>using namespace std;int a[27],b[27];int vis[9][9];int dis[9];int main(){ ios::sync_with_stdio(false 阅读全文
posted @ 2019-09-25 00:53 sewage 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 题意: 输入一个正整数N(<=10000),接下来输入N个字符串,每个字符串包括至多8个字符,均为数字0~9。输出由这些字符串连接而成的最小数字(不输出前导零)。 trick: 数据点0只包含没有0的串。 数据点2,5,6包含最小串全部为0且次小串含有前导零的数据。 如果所有的数字均为0,输出一个0 阅读全文
posted @ 2019-09-25 00:51 sewage 阅读(257) 评论(0) 推荐(0) 编辑
摘要: #define HAVE_STRUCT_TIMESPEC#include<bits/stdc++.h>using namespace std;long long a[7007],b[7007];multiset<long long>st;int visit[7007];int main(){ int 阅读全文
posted @ 2019-09-24 16:11 sewage 阅读(183) 评论(0) 推荐(1) 编辑
摘要: #include<bits/stdc++.h>using namespace std;long long a[200007];vector<int>v[77];int main(){ ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL) 阅读全文
posted @ 2019-09-23 18:04 sewage 阅读(171) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h>using namespace std;int n,m,s; vector<int>edge[200007];queue<int>leaf;int weight[200007],degree[200007];long long wei[200007];/ 阅读全文
posted @ 2019-09-23 18:02 sewage 阅读(171) 评论(0) 推荐(0) 编辑
摘要: //这道题博弈的核心就是不能让后手有一段只能放b而长度不够放a的段,并且先手要放最后一次#define HAVE_STRUCT_TIMESPEC#include<bits/stdc++.h>using namespace std;int length[300007];int main(){ ios: 阅读全文
posted @ 2019-09-22 19:55 sewage 阅读(227) 评论(0) 推荐(0) 编辑
摘要: #define HAVE_STRUCT_TIMESPEC#include<bits/stdc++.h>using namespace std;long long a[300007],b[300007];long long dp[300007][5];long long ans;int main(){ 阅读全文
posted @ 2019-09-22 10:58 sewage 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 题意: 输入一个正整数N(<=1e5),接下来输入N个整数。再输入一个正整数M(<=1e5),接下来输入M个整数。每次可以从两组数中各取一个,求最大的两个数的乘积的和。 AAAAAccepted code: 1 #define HAVE_STRUCT_TIMESPEC 2 #include<bits 阅读全文
posted @ 2019-09-19 19:02 sewage 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 题意: 输入一个正整数N(题干没指出范围,默认1e5可以AC),接下来输入N行数据,每行包括一名学生的姓名,性别,学号和分数。输出三行,分别为最高分女性学生的姓名和学号,最低分男性学生的姓名和学号,前者减去后者的分数差。 AAAAAccepted code: 1 #define HAVE_STRUC 阅读全文
posted @ 2019-09-19 18:18 sewage 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 题意: 输入一个正整数N(<=1000),接着输入N行数据,每行包括一个ID和一个密码,长度不超过10的字符串,如果有歧义字符就将其修改。输出修改过多少组密码并按输入顺序输出ID和修改后的密码,如果没有修改过就输出There are N accounts and no account is modi 阅读全文
posted @ 2019-09-18 21:11 sewage 阅读(194) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 33 下一页