|
|
вернуться в форумMy Simple Java Solution 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 n >= 7 ? "YES" : "NO" :) Re: My Simple Java Solution Послано Nabi 19 июл 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') |
|
|