Saratov State University :: Online Contester


::Go
- home
- news
- register
- update personal info
- problemset archive
- submit
- status online
- standing
- contests
- virtual contests
- forum
- statistic
- FAQ
- links
- projects

::Poll
Are you registered on Codeforces?
Yes
No
What is it???

[results]

::webboard

Author: UrSU
ID: 060135
Problem: K
Contest: 13
Date: 2015-10-15 06:48:00


import java.util.Scanner;

public class ACMSGU_H {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int s=sc.nextInt();
int r=sc.nextInt();
System.out.println(his(s,r));
}

private static int his(int s, int r) {
if(s>=r)return 0;
if((r-s)<5*60) return 1;
if((r-s)<15*60) return 2;
if((r-s)<30*60) return 3;
return 4;
}
}


see sub-tree reply to that message


::Login
Forgot password?

::News
22.10.12 - The problems from the Southern Subregional Programming Contest 2012 added to the problemset archive (542 - 553).
22.10.12 - After the start of the contest the statements in PDF will be available by the link.
23.10.11 - The problems from the Southern Subregional Programming Contest 2011 added to the problemset archive (530 - 541).

::Counter

Server time: 2017-09-21 11:00:30Online Contester Team © 2002 - 2016. All rights reserved.