摘要:
#include<iostream> #include<algorithm> using namespace std; int hashtable[26] = {0};//统计各个小写字母出现次数 int cnt_alpha = 0,cnt_word = 0,MAX = -1; int main() 阅读全文
posted @ 2020-02-25 11:42
tangq123
阅读(220)
评论(0)
推荐(0)
摘要:
注意点,四舍五入后的数,在输出的时候记得强制转换,不然输出 0 #include<iostream> #include<cmath> #include<algorithm> using namespace std; int main() { int n,m; cin>>n>>m; for(int i 阅读全文
posted @ 2020-02-25 10:19
tangq123
阅读(128)
评论(0)
推荐(0)
摘要:
水题。总结一下吧。 解题一般有两种过程。 第一种,一边输入数据,一边处理数据,一边输出结果。 第二种,首先把所有输入的数据存下,然后处理数据,最后输出结果。 这题属于第一种。 #include<iostream> using namespace std; int main() { int n; ci 阅读全文
posted @ 2020-02-25 09:26
tangq123
阅读(155)
评论(0)
推荐(0)

浙公网安备 33010602011771号