摘要: A. Flipping Game time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Iahub got bored, so he i 阅读全文
posted @ 2018-01-09 15:09 暮雨青枫 阅读(191) 评论(0) 推荐(0) 编辑
摘要: A. Cut Ribbon time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Cut Ribbon time limit pe 阅读全文
posted @ 2018-01-09 11:20 暮雨青枫 阅读(151) 评论(0) 推荐(0) 编辑
摘要: A. Boredom time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Alex doesn't like boredom. Tha 阅读全文
posted @ 2018-01-03 11:22 暮雨青枫 阅读(469) 评论(0) 推荐(0) 编辑
摘要: 请实现一个“鱼额宝”类,下面已给出代码模板,请根据main函数中对该类的操作,补充类实现部分完成代码。 “鱼额宝”类可以记录账户余额、存钱、取钱、计算利息。该类中有一个私有静态成员变量profitRate存储“鱼额宝”的利率,可以用共有静态成员函数setProfitRate修改利率的值。程序输入为第 阅读全文
posted @ 2017-12-25 10:49 暮雨青枫 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 请实现一个老鼠类,下面已给出代码模板,请根据main函数中对该类的操作,补充类实现部分完成代码。 该类有个公有静态变量num记录该类的所有对象数,主函数将会在不同语句之后输出对象数,只有正确地实现该类,保证num正确记录该类的对象数,才能输出正确的结果。 主函数需要访问类的num对象,不能放在pri 阅读全文
posted @ 2017-12-25 10:46 暮雨青枫 阅读(158) 评论(0) 推荐(0) 编辑
摘要: C. Given Length and Sum of Digits... time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. G 阅读全文
posted @ 2017-11-24 15:46 暮雨青枫 阅读(430) 评论(0) 推荐(0) 编辑
摘要: B. Buttons time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Manao is trying to open a rath 阅读全文
posted @ 2017-11-23 16:54 暮雨青枫 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 寻找并输出11~999之间的数m,它满足m、m2和m3均为回文数。 l 回文:各位数字左右对称的整数。 l 例如:11满足上述条件 n 112=121,113=1331。 #include<iostream> using namespace std; int circle(int x) { int 阅读全文
posted @ 2017-11-23 14:44 暮雨青枫 阅读(168) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; double power(double x, int n) { double vie = 1.0; while (n--) { vie *= x; } return vie; } double arctan(double x) { int i = 1; dou... 阅读全文
posted @ 2017-11-23 12:04 暮雨青枫 阅读(852) 评论(0) 推荐(0) 编辑
摘要: C. Registration system time limit per test 5 seconds memory limit per test 64 megabytes input standard input output standard output C. Registration sy 阅读全文
posted @ 2017-11-23 10:16 暮雨青枫 阅读(355) 评论(0) 推荐(0) 编辑