Submission #1695904
Source Code Expand
import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Main { private static final String ex = "19\n" + "100"; public static void main(String[] args) { System.out.println(solve(new Scanner(System.in))); // System.out.println(solve(new Scanner(ex))); } private static int solve(Scanner scanner) { int N = Integer.parseInt(scanner.nextLine()); int A = Integer.parseInt(scanner.nextLine()); return N * N - A; } }
Submission Info
Submission Time | |
---|---|
Task | A - Bichrome Cells |
User | g_votte |
Language | Java8 (OpenJDK 1.8.0) |
Score | 100 |
Code Size | 561 Byte |
Status | AC |
Exec Time | 95 ms |
Memory | 23252 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | subtask0_0.txt, subtask0_1.txt, subtask0_2.txt |
All | 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, subtask0_0.txt, subtask0_1.txt, subtask0_2.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01.txt | AC | 90 ms | 23252 KB |
02.txt | AC | 91 ms | 21460 KB |
03.txt | AC | 91 ms | 19540 KB |
04.txt | AC | 90 ms | 19156 KB |
05.txt | AC | 89 ms | 19924 KB |
06.txt | AC | 89 ms | 21844 KB |
07.txt | AC | 95 ms | 19924 KB |
subtask0_0.txt | AC | 90 ms | 19412 KB |
subtask0_1.txt | AC | 93 ms | 21844 KB |
subtask0_2.txt | AC | 88 ms | 19284 KB |