码迷,mamicode.com
首页 >  
搜索关键字:水题    ( 4171个结果
1037 在霍格沃茨找零钱
水题。 #include<iostream> #include<algorithm> using namespace std; typedef long long LL; int main() { LL G1,S1,K1,G2,S2,K2; scanf("%lld.%lld.%lld %lld.%l ...
分类:其他好文   时间:2020-02-19 12:49:51    阅读次数:63
CF #621 div.2
三连否认跪了 T1 开了第一题水题,一遍交过 T2 也是·水题 T3 我 ,md有一个是算术级数的条件。。。。。。 然后最后有特判。。。 ...
分类:其他好文   时间:2020-02-18 18:10:57    阅读次数:65
1027 打印沙漏
水题。在计算层数的时候卡了十几分钟,我好菜。 #include<iostream> using namespace std; int main() { int N; char c; cin>>N>>c; int layer = 1,sum = 1;//sum表示层数layer对应的总字符数 whil ...
分类:其他好文   时间:2020-02-18 13:04:22    阅读次数:72
1026 程序运行时间
水题。 #include<iostream> #include<cmath> using namespace std; int main() { int c1,c2; cin>>c1>>c2; int t = round((c2-c1)/100.0);//不足 1 秒的时间四舍五入到秒 int h ...
分类:其他好文   时间:2020-02-18 13:02:43    阅读次数:63
1029 旧键盘
水题。与B1093 字符串A+B 类似。 #include<iostream> #include<cctype> using namespace std; bool hashtable[300] = {false}; int main() { string str1,str2; cin>>str1> ...
分类:其他好文   时间:2020-02-18 12:51:58    阅读次数:72
HDU-1000 A+B Problem
这是一道看似简单,实则有一点小坑的水题。坑在哪呢?就是他没给你数的范围。想当然以为是int型就很容易出错啦。当然,比较仁慈的是,他给的测试数据用long long就可以了 代码: #include<stdio.h> int main() { long long a,b; while(scanf("% ...
分类:其他好文   时间:2020-02-17 23:53:28    阅读次数:124
部分A+B
水题。 #include"iostream" using namespace std; int main() { string str1,str2; char da,db; int pa = 0,pb = 0; cin>>str1>>da>>str2>>db; for(int i = 0; i < ...
分类:其他好文   时间:2020-02-16 12:52:01    阅读次数:72
1004 成绩排名
水题。 #include"iostream" #include"algorithm" using namespace std; struct Student { string name,id; int score; }; int main() { int n; cin>>n; Student max ...
分类:其他好文   时间:2020-02-15 18:37:35    阅读次数:56
1006 换个格式输出整数
水题。 #include"iostream" using namespace std; int main() { int n; cin>>n; int a = n/100;//百分位 int b = n%100/10;//十分位 int c = n%10;//个位 while(a--) cout<< ...
分类:其他好文   时间:2020-02-15 15:38:34    阅读次数:52
PAT T1014 Circles of Friends
大水题,dfs判连通块的数量,bfs每个点找朋友圈的最大直径~ #include<bits/stdc++.h> using namespace std; const int maxn=1014; vector<int> g[maxn]; bool visit[maxn]; int N; int ma ...
分类:其他好文   时间:2020-02-13 13:20:03    阅读次数:84
4171条   上一页 1 ... 10 11 12 13 14 ... 418 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!