摘要:
很好的求幂方法。值得学习一下#include #include #include #include #include #include #include #include #include #include #include using namespace std;int main(){ int a... 阅读全文
摘要:
The task is simple: given any positive integer N, you are supposed to count the total number of 1's in the decimal form of the integers from 1 to N. F... 阅读全文
摘要:
Given any positive integer N, you are supposed to find all of its prime factors, and write them in the format N = p1^k1 * p2^k2 *…*pm^km.Input Specifi... 阅读全文
摘要:
Given two strings S1 and S2, S = S1 - S2 is defined to be the remaining string after taking all the characters in S2 from S1. Your task is simply to c... 阅读全文