HackerRank
HackerRank copied to clipboard
HackerRank solutions in Java/JS/Python/C++/C#
Solution for New Year Chaos challenge in Python.
sahand
Instead of using a variable for the conversion of int to BigInteger, we can directly convert it while multiplying. Thus it reduces one line of code and a variable.
import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner sc=new Scanner(System.in); System.out.println("================================"); for(int i=0;i
If the minute is equal to one, in that case, we have to write "minute" instead of "minutes". Just updated a new statement for that