Category: implementation
In python, you can define classes using keyword class. The basic class skeleton that has a constructor and a destructor is given below. #!/usr/bin/env python class TestClass: def __init__(self): …
The problem is from codeforces: http://codeforces.com/problemset/problem/200/B This is another easy problem as long as you figure out how to compute the value. For example, The answer = Python gives …
The problem is from codeforces: http://codeforces.com/problemset/problem/199/A There is no way you could get it wrong for this easy problem. I hope nobody would actually output the message. All the …
Sometimes, maybe you want to know how popular your programs are. You put the download links but have no idea how many of them have been downloaded. In fact, …
The problem is from codeforces: http://codeforces.com/problemset/problem/197/B It has been a while since last time I submitted Python solutions to codeforces. This time, I pick a math problem that can …