摘要: Description描述First year of new millenium is gone away. In commemoration of it write a program that finds the name of the day of the week for any date ... 阅读全文
posted @ 2015-01-29 21:18 Ivy_End 阅读(131) 评论(0) 推荐(0) 编辑
摘要: Description描述The Fibonacci sequence of numbers is known: F1= 1; F2= 1; Fn+1= Fn+ Fn-1, for n>1.You have to find S - the sum of the first K Fibonacci n... 阅读全文
posted @ 2015-01-29 21:03 Ivy_End 阅读(162) 评论(0) 推荐(0) 编辑
摘要: Description描述There is sequence 1, 12, 123, 1234, ..., 12345678910, ... . Given first N elements of that sequence. You must determine amount of numbers... 阅读全文
posted @ 2015-01-29 20:48 Ivy_End 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Description描述For given integer N (1using namespace std;const int MAX = 1024;int N;int p[MAX], phi[MAX];int main(){ cin >> N; for(int i = 1; i #i... 阅读全文
posted @ 2015-01-29 20:17 Ivy_End 阅读(231) 评论(0) 推荐(0) 编辑
摘要: Description描述Read integers A and B from input file and write their sum in output file.从输入文件中读入整数A和B并且将他们的和输出在输出文件上。Input输入Input file contains A and B ... 阅读全文
posted @ 2015-01-29 20:08 Ivy_End 阅读(170) 评论(4) 推荐(0) 编辑