Tag: java
Today I need a Java function to check if a given time string e.g. 20130218001203638, (e.g, 18 of Feb, 2013) is weekend, i.e Saturday or Sunday. So, the following …
This problem is from codeforces: http://www.codeforces.com/problemset/problem/268/A This is a simple math problem. Almost every solution needs to store the colours of home and away. Counting the occurrences that the home colour …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/239/A It is a simple math problem: finding the numbers x that satisify where y, k, and n are given;
The problem is from codeforces: http://www.codeforces.com/problemset/problem/230/B The input of the numbers exceed a 4-byte integer, therefore, a long type (int64) should be used in Java. I feel like I …