Submission #1178604


Source Code Expand

import java.util.*;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int cnt = 3;
		if(a==b)cnt--;
		if(b==c)cnt--;
		if(a==c)cnt--;
		if(a==b&&b==c)cnt++;
		System.out.println(cnt);
	}
}

Submission Info

Submission Time
Task A - AtCoDeer and Paint Cans
User ne280089
Language Java8 (OpenJDK 1.8.0)
Score 100
Code Size 325 Byte
Status AC
Exec Time 95 ms
Memory 23764 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 6
Set Name Test Cases
Sample 0_000.txt, 0_001.txt
All 0_000.txt, 0_001.txt, 1_002.txt, 1_003.txt, 1_004.txt, 1_005.txt
Case Name Status Exec Time Memory
0_000.txt AC 92 ms 23764 KB
0_001.txt AC 92 ms 20560 KB
1_002.txt AC 95 ms 17620 KB
1_003.txt AC 92 ms 20564 KB
1_004.txt AC 92 ms 20948 KB
1_005.txt AC 92 ms 20692 KB