摘要:
Description描述Little Johnny likes to draw a lot. A few days ago he painted lots of straight lines on his sheet of paper. Then he counted in how many zo... 阅读全文
摘要:
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 ... 阅读全文
摘要:
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... 阅读全文
摘要:
Description描述There is sequence 1, 12, 123, 1234, ..., 12345678910, ... . Given first N elements of that sequence. You must determine amount of numbers... 阅读全文
摘要:
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... 阅读全文
摘要:
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 ... 阅读全文