随笔分类 -  水题

摘要:1381 硬币游戏 基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 1381 硬币游戏 基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 1381 硬币游戏 基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算 阅读全文
posted @ 2017-12-02 04:02 sortmin 阅读(123) 评论(0) 推荐(0)
摘要:1015 水仙花数 基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 1015 水仙花数 基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 1015 水仙花数 基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算 阅读全文
posted @ 2017-12-02 03:55 sortmin 阅读(166) 评论(0) 推荐(0)
摘要:1083 矩阵取数问题 基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 1083 矩阵取数问题 基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 1083 矩阵取数问题 基准时间限制:1 秒 空间限制:131072 KB 分值: 5  阅读全文
posted @ 2017-12-02 03:39 sortmin 阅读(200) 评论(0) 推荐(0)
摘要:1002 数塔取数问题 基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 1002 数塔取数问题 基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 1002 数塔取数问题 基准时间限制:1 秒 空间限制:131072 KB 分值: 5  阅读全文
posted @ 2017-12-02 03:28 sortmin 阅读(241) 评论(0) 推荐(0)
摘要:1087 1 10 100 1000 题目来源: Ural 1209 基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 1087 1 10 100 1000 题目来源: Ural 1209 基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法 阅读全文
posted @ 2017-12-02 03:08 sortmin 阅读(120) 评论(0) 推荐(0)
摘要:1182 完美字符串 题目来源: Facebook Hacker Cup选拔 基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 1182 完美字符串 题目来源: Facebook Hacker Cup选拔 基准时间限制:1 秒 空间限制:131072 KB 分值: 5 阅读全文
posted @ 2017-12-02 02:50 sortmin 阅读(228) 评论(0) 推荐(0)
摘要:1001 数组中和等于K的数对 基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 1001 数组中和等于K的数对 基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 1001 数组中和等于K的数对 基准时间限制:1 秒 空间限制:1310 阅读全文
posted @ 2017-12-01 01:00 sortmin 阅读(174) 评论(0) 推荐(0)
摘要:1004 n^n的末位数字 题目来源: Author Ignatius.L (Hdu 1061) 基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 1004 n^n的末位数字 题目来源: Author Ignatius.L (Hdu 1061) 基准时间限制:1 秒 阅读全文
posted @ 2017-11-30 18:42 sortmin 阅读(143) 评论(0) 推荐(0)
摘要:直接使用STL函数就可以 AC代码: #include<bits/stdc++.h>using namespace std;int main(){ char a[100]; int n; while(cin>>a) { int n=strlen(a); sort(a,a+n); do { cout< 阅读全文
posted @ 2017-08-16 16:39 sortmin 阅读(85) 评论(0) 推荐(0)
摘要:题目链接https://www.51nod.com/onlineJudge/questionCode.html#!problemId=2006 二分图的最大匹配 水题 AC代码: #include<bits/stdc++.h>>using namespace std;int n,k,m;int ma 阅读全文
posted @ 2017-08-16 14:57 sortmin 阅读(349) 评论(0) 推荐(0)
摘要:水题 题意 分糖果 每次最多8个 多出来的可以遗留到下一天 注意下一天少于8个要清0; 代码: #include<bits/stdc++.h>using namespace std;int n,k;int q,b,ok;int a;long long sum;int main(){ cin>>n>> 阅读全文
posted @ 2017-08-13 12:05 sortmin 阅读(112) 评论(0) 推荐(0)
摘要:国旗问题的水题 直接上下扫两遍; 代码: #include<bits/stdc++.h>using namespace std;int n,m;char s[105][105];int x1,x2,x3;int main(){ int sum; while(scanf("%d%d",&n,&m)!= 阅读全文
posted @ 2017-08-12 23:12 sortmin 阅读(260) 评论(0) 推荐(0)
摘要:题意找一段文字的大写字母 水题 注意getchar的使用 代码: #include<bits/stdc++.h>using namespace std;int n;char s[205];int main(){ int sum; while(cin>>n) { sum=0; int ans = 0; 阅读全文
posted @ 2017-08-12 22:14 sortmin 阅读(119) 评论(0) 推荐(0)