Submission #2459281


Source Code Expand

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int count = 0;
		if (b >= a) {
			count = a;
		} else {
			count = a - 1;
		}
		System.out.println(count);
	}
}

Submission Info

Submission Time
Task A - Day of Takahashi
User k_zin
Language Java8 (OpenJDK 1.8.0)
Score 100
Code Size 306 Byte
Status AC
Exec Time 96 ms
Memory 23892 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 7
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All in01.txt, in02.txt, in03.txt, in04.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
in01.txt AC 93 ms 23252 KB
in02.txt AC 92 ms 19028 KB
in03.txt AC 91 ms 23892 KB
in04.txt AC 93 ms 18644 KB
sample_01.txt AC 93 ms 19156 KB
sample_02.txt AC 94 ms 23764 KB
sample_03.txt AC 96 ms 21716 KB