Submission #1239903
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 c=sc.nextInt(); if(a==b && b==c)System.out.println(1); else if(a==b || a==c || b==c)System.out.println(2); else System.out.println(3); } }
Submission Info
Submission Time | |
---|---|
Task | A - AtCoDeer and Paint Cans |
User | kwkm0429 |
Language | Java8 (OpenJDK 1.8.0) |
Score | 100 |
Code Size | 341 Byte |
Status | AC |
Exec Time | 96 ms |
Memory | 20564 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
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 | 96 ms | 19412 KB |
0_001.txt | AC | 92 ms | 19412 KB |
1_002.txt | AC | 92 ms | 20564 KB |
1_003.txt | AC | 92 ms | 19924 KB |
1_004.txt | AC | 91 ms | 18640 KB |
1_005.txt | AC | 92 ms | 19796 KB |