Submission #1791244
Source Code Expand
import std.stdio; import std.string; import std.conv; import std.bigint; import std.typecons; import std.algorithm; import std.array; import std.math; import std.range; void main() { auto N = readln.chomp.to!int; auto A = sort(readln.split.to!(ulong[])); auto B = sort(readln.split.to!(ulong[])); auto C = sort(readln.split.to!(ulong[])); writeln(sum(B.map!(b => A.lowerBound(b).length * C.upperBound(b).length))); }
Submission Info
Submission Time | |
---|---|
Task | C - Snuke Festival |
User | sobaya |
Language | D (DMD64 v2.070.1) |
Score | 300 |
Code Size | 456 Byte |
Status | AC |
Exec Time | 112 ms |
Memory | 12372 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 300 / 300 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | s1.txt, s2.txt, s3.txt |
All | 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, s1.txt, s2.txt, s3.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01.txt | AC | 111 ms | 11068 KB |
02.txt | AC | 110 ms | 11836 KB |
03.txt | AC | 94 ms | 10200 KB |
04.txt | AC | 95 ms | 10712 KB |
05.txt | AC | 70 ms | 10364 KB |
06.txt | AC | 70 ms | 10236 KB |
07.txt | AC | 60 ms | 9308 KB |
08.txt | AC | 59 ms | 8412 KB |
09.txt | AC | 51 ms | 10924 KB |
10.txt | AC | 52 ms | 11436 KB |
11.txt | AC | 46 ms | 10228 KB |
12.txt | AC | 47 ms | 10228 KB |
13.txt | AC | 105 ms | 11260 KB |
14.txt | AC | 103 ms | 11004 KB |
15.txt | AC | 108 ms | 11092 KB |
16.txt | AC | 107 ms | 10964 KB |
17.txt | AC | 103 ms | 12372 KB |
18.txt | AC | 106 ms | 11732 KB |
19.txt | AC | 112 ms | 10940 KB |
20.txt | AC | 44 ms | 11380 KB |
21.txt | AC | 44 ms | 10996 KB |
22.txt | AC | 93 ms | 11080 KB |
23.txt | AC | 103 ms | 11496 KB |
24.txt | AC | 105 ms | 11112 KB |
25.txt | AC | 106 ms | 10876 KB |
26.txt | AC | 1 ms | 256 KB |
27.txt | AC | 1 ms | 256 KB |
28.txt | AC | 1 ms | 256 KB |
29.txt | AC | 1 ms | 256 KB |
s1.txt | AC | 1 ms | 256 KB |
s2.txt | AC | 1 ms | 256 KB |
s3.txt | AC | 1 ms | 256 KB |