摘要: Let‘s try Hello World first :D 1 #include <iostream> 2 3 using namespace std; 4 5 int main(){ 6 7 cout<<"Hello World!"<<endl; 8 9 } So that's the star 阅读全文
posted @ 2020-04-24 17:18 lym1124 阅读(113) 评论(0) 推荐(0)
摘要: In a sequence of numbers,we can find some number pairs that conform to the rule below: Assuming that there exist two numbers,N and M and it's position 阅读全文
posted @ 2020-05-02 17:49 lym1124 阅读(177) 评论(0) 推荐(0)
摘要: One day,Li Lei and Han Mei Mei are playing together. Li Lei says:"Oh~,Dear Mei Mei,Let's play a game,would you like to try?" Mei Mei says:"Oh~,I'd lik 阅读全文
posted @ 2020-05-02 09:52 lym1124 阅读(164) 评论(0) 推荐(0)
摘要: Leap year is defined as a year that divisible by 400 or not divisible by 100 but divisible by 4. #include <iostream>using namespace std; int main(){ i 阅读全文
posted @ 2020-05-01 17:43 lym1124 阅读(262) 评论(0) 推荐(0)
摘要: If you want to transform integer into string,so that you can easily access every bit of the number,you can use the "stringstream" variable. Q:you are 阅读全文
posted @ 2020-05-01 16:28 lym1124 阅读(79) 评论(0) 推荐(0)
摘要: I used to sovle questions by spilt it into very basic parts. But sometimes it is hard to rebuild the "wheel" or just not convenient to do so. Not only 阅读全文
posted @ 2020-05-01 15:10 lym1124 阅读(164) 评论(0) 推荐(0)
摘要: This passage is wrote to introduce the header file <iomanip>. The basic usage of the library funcions from this header file is in the form of "."or by 阅读全文
posted @ 2020-04-25 16:17 lym1124 阅读(175) 评论(0) 推荐(0)
摘要: Fibonacci sequence. Q:Out put the n item of the sequence. ps.the n can be very big.Mod 10007 if necessary.(n<=1,000,000). S:Usually we code it by recu 阅读全文
posted @ 2020-04-24 18:32 lym1124 阅读(131) 评论(0) 推荐(0)