水题。 #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
三连否认跪了 T1 开了第一题水题,一遍交过 T2 也是·水题 T3 我 ,md有一个是算术级数的条件。。。。。。 然后最后有特判。。。 ...
分类:
其他好文 时间:
2020-02-18 18:10:57
阅读次数:
65
水题。在计算层数的时候卡了十几分钟,我好菜。 #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
水题。 #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
水题。与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
这是一道看似简单,实则有一点小坑的水题。坑在哪呢?就是他没给你数的范围。想当然以为是int型就很容易出错啦。当然,比较仁慈的是,他给的测试数据用long long就可以了 代码: #include<stdio.h> int main() { long long a,b; while(scanf("% ...
分类:
其他好文 时间:
2020-02-17 23:53:28
阅读次数:
124
水题。 #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
水题。 #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
水题。 #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
大水题,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