Submission #3777503
Source Code Expand
<?php function input($func = null) { if ($func === null) { return trim(fgets(STDIN)); } else { return $func(trim(fgets(STDIN))); } } function input_array($func = null) { if ($func === null) { return explode(' ', input()); } else { return array_map(function($v) use ($func) { return $func($v); }, explode(' ', input())); } } input(); $ls = input_array('intval'); sort($ls); echo array_sum( array_filter( $ls, function($k) { return $k % 2 === 0; }, ARRAY_FILTER_USE_KEY ) ) . "\n";
Submission Info
Submission Time | |
---|---|
Task | A - BBQ Easy |
User | carrotRakko |
Language | PHP7 (7.0.15) |
Score | 200 |
Code Size | 640 Byte |
Status | AC |
Exec Time | 10 ms |
Memory | 4604 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample-01.txt, sample-02.txt |
All | sample-01.txt, sample-02.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, sample-01.txt, sample-02.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01-01.txt | AC | 10 ms | 4604 KB |
01-02.txt | AC | 10 ms | 4604 KB |
01-03.txt | AC | 10 ms | 4604 KB |
01-04.txt | AC | 10 ms | 4604 KB |
01-05.txt | AC | 10 ms | 4604 KB |
01-06.txt | AC | 10 ms | 4604 KB |
01-07.txt | AC | 10 ms | 4604 KB |
01-08.txt | AC | 10 ms | 4604 KB |
sample-01.txt | AC | 10 ms | 4604 KB |
sample-02.txt | AC | 10 ms | 4604 KB |