ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 2012. About Grisha N.

My Simple Java Solution
Posted by Md johirul Islam 31 May 2015 00:32
import java.util.Scanner;


public class T2012 {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Scanner sc=new Scanner(System.in);
        int f=sc.nextInt();
        int r=12-f;
        int time=r*45;
        if(time<=240)
            System.out.println("YES");
        else
            System.out.println("NO");

    }

}
Re: My Simple Java Solution
Posted by ValentinPerm 2 Jun 2015 10:44
n >= 7 ? "YES" : "NO"
:)
Re: My Simple Java Solution
Posted by Nabi 19 Jul 2017 13:01
for python
a=int(input())
question=12
time=240
tasks_left=question-a
if tasks_left*45<=240:
    print('true')
else:
    print('false')