摘要:
例:输入数字x,计算x! 考虑使用静态变量static int f=1,该值只在编译的时候进行初始化,在后期函数执行的时候不进行变换,故可进行阶乘计算 #include<iostream> #include<stdio.h> #define MAX 1005; #define N 25 using 阅读全文
摘要:
题意:原题在这 You've got a string s = s1s2... s|s| of length |s|, consisting of lowercase English letters. There also are q queries, each query is described 阅读全文
摘要:
题意:原题在这 Alexander is learning how to convert numbers from the decimal system to any other, however, he doesn't know English letters, so he writes any 阅读全文
摘要:
题意:原题在这 Wilbur the pig really wants to be a beaver, so he decided today to pretend he is a beaver and bite at trees to cut them down. There are nn tre 阅读全文
摘要:
题意:原题在这 Squares and rectangles fascinated the famous Dutch painter Piet Mondriaan. One night, after producing the drawings in his 'toilet series' (whe 阅读全文