Submission #923925
Source Code Expand
import java.util.ArrayList; import java.util.Arrays; import java.util.Scanner; import java.util.function.BiFunction; public class Main { Scanner sc = new Scanner(System.in); public static void main(String[] args) { new Main().run(); } class Box { int h, w; } void run() { int a = ni(); int b = ni(); int c = ni(); int min = Math.min(a, b); System.out.println(c / min); } int ni() { return Integer.parseInt(sc.next()); } void debug(Object... os) { System.err.println(Arrays.deepToString(os)); } class BIT<T> { int n; ArrayList<T> bit; BiFunction<T, T, T> bif; BIT(int n, BiFunction<T, T, T> bif, T defaultValue) { this.n = n; bit = new ArrayList<>(n + 1); for (int i = 0; i < n + 1; ++i) { bit.add(defaultValue); } this.bif = bif; } void update(int i, T v) { for (int x = i; x <= n; x += x & -x) { bit.set(x, bif.apply(bit.get(x), v)); } } T reduce(int i, T defaultValue) { T ret = defaultValue; for (int x = i; x > 0; x -= x & -x) { ret = bif.apply(ret, bit.get(x)); } return ret; } } }
Submission Info
Submission Time | |
---|---|
Task | A - 饅頭 |
User | arukuka |
Language | Java8 (OpenJDK 1.8.0) |
Score | 100 |
Code Size | 1244 Byte |
Status | AC |
Exec Time | 130 ms |
Memory | 9684 KB |
Judge Result
Set Name | sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
sample | sample01.txt, sample02.txt |
All | 00.txt, 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt, 16.txt, 17.txt, 18.txt, 19.txt, 20.txt, 21.txt, 22.txt, 23.txt, 24.txt, 25.txt, 26.txt, 27.txt, 28.txt, 29.txt, sample01.txt, sample02.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00.txt | AC | 130 ms | 9556 KB |
01.txt | AC | 127 ms | 9552 KB |
02.txt | AC | 127 ms | 9556 KB |
03.txt | AC | 127 ms | 9552 KB |
04.txt | AC | 126 ms | 9556 KB |
05.txt | AC | 127 ms | 9556 KB |
06.txt | AC | 126 ms | 9556 KB |
07.txt | AC | 127 ms | 9556 KB |
08.txt | AC | 125 ms | 9684 KB |
09.txt | AC | 125 ms | 9680 KB |
10.txt | AC | 124 ms | 9552 KB |
11.txt | AC | 125 ms | 9680 KB |
12.txt | AC | 127 ms | 9680 KB |
13.txt | AC | 126 ms | 9548 KB |
14.txt | AC | 126 ms | 9676 KB |
15.txt | AC | 127 ms | 9680 KB |
16.txt | AC | 126 ms | 9684 KB |
17.txt | AC | 127 ms | 9556 KB |
18.txt | AC | 127 ms | 9556 KB |
19.txt | AC | 126 ms | 9428 KB |
20.txt | AC | 126 ms | 9548 KB |
21.txt | AC | 127 ms | 9556 KB |
22.txt | AC | 126 ms | 9556 KB |
23.txt | AC | 125 ms | 9556 KB |
24.txt | AC | 126 ms | 9556 KB |
25.txt | AC | 127 ms | 9684 KB |
26.txt | AC | 126 ms | 9552 KB |
27.txt | AC | 129 ms | 9684 KB |
28.txt | AC | 127 ms | 9680 KB |
29.txt | AC | 127 ms | 9548 KB |
sample01.txt | AC | 126 ms | 9684 KB |
sample02.txt | AC | 127 ms | 9684 KB |