2017年海淀区信息学竞赛小学组详细答案
摘要:1 ISBN码 #include <iostream> using namespace std; int main() { freopen("isbn.in", "r", stdin); freopen("isbn.out", "w", stdout); string s; cin >> s; in
阅读全文
posted @
2019-05-15 00:34
Alan_Fire
2018年海淀区青少年程序设计思维挑战活动普及组详细答案
摘要:1 拆烟囱 分析:注意本题要求的是没有动拆的烟囱数量,不包含没拆完的。 #include <iostream> #include <cmath> using namespace std; int main() { int n, day, y; cin >> n >> day >> y; cout <
阅读全文
posted @
2019-05-15 00:02
Alan_Fire
2016年海淀区信息学竞赛小学组详细答案
摘要:1 价钱统计 分析 无论用printf还是用setprecision,都无法达到四舍五入的结果。 #include <iostream> #include <cstdio> #include <iomanip> using namespace std; int main() { printf("%.
阅读全文
posted @
2019-05-14 23:43
Alan_Fire
2015年海淀区信息学竞赛小学组详细答案
摘要:1 成绩统计 #include <iostream> using namespace std; int main() { int n; cin >> n; int cnt1 = 0, cnt2 = 0, cnt3 = 0, cnt4 = 0; int a[n]; for(int i = 0; i <
阅读全文
posted @
2019-05-14 23:35
Alan_Fire
2019年海淀区青少年程序设计挑战活动笔试题详细答案
摘要:一、单项选择题 1 B 分析:这题NOIP也考过类似的题多次。解释性语言如Python, Perl, Matlab,运行速度较慢。 2 A 分析:FTP的全称为File Transfer Protocol,文件传输协议。 3 A 4 D 分析:4和6分别代表第4代和第6代。目前用的基本上都是IPv4
阅读全文
posted @
2019-05-14 23:34
Alan_Fire
2019年海淀区青少年程序设计挑战活动小学组复赛试题详细答案
摘要:1 约数 #include <iostream> #include <cmath> using namespace std; int main() { int n; cin >> n; int root = sqrt(n); for(int i = 2; i <= root; i++) { if(0
阅读全文
posted @
2019-05-14 23:32
Alan_Fire
2019 年海淀区青少年程序设计挑战活动复赛 小学组 C++语言试题
摘要:2019 年海淀区青少年程序设计挑战活动复赛小学组 C++语言试题竞赛时间:2019 年 4 月 27 日 9:00~11:00注意事项:1. 答题统一在windows系统下使用DEVC++5.11版本编程环境。2. 在计算机D盘根目录下创建一个以BJHDF和自己考号为文件名的文件夹。如:D:\ B
阅读全文
posted @
2019-04-28 23:52
Alan_Fire
阅读(4629)
推荐(0)