Submission #2249987
Source Code Expand
import std.stdio : readln, writeln; import std.conv : to; import std.range : split, iota; import std.algorithm : filter, map, sum; import std.functional : pipe; void main() { ( as => iota(1, as[0]+1).filter!( x => x.to!string.map!(c => c.to!string.to!long).sum.pipe!( y => as[1]<=y && y<=as[2] ) ).sum )(readln.split.to!(long[])).writeln; }
Submission Info
Submission Time | |
---|---|
Task | ABC083B - Some Sums |
User | arkark |
Language | D (DMD64 v2.070.1) |
Score | 200 |
Code Size | 421 Byte |
Status | AC |
Exec Time | 12 ms |
Memory | 1276 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
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, s1.txt, s2.txt, s3.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01.txt | AC | 11 ms | 1276 KB |
02.txt | AC | 5 ms | 892 KB |
03.txt | AC | 11 ms | 1276 KB |
04.txt | AC | 12 ms | 1276 KB |
05.txt | AC | 9 ms | 1276 KB |
06.txt | AC | 10 ms | 1276 KB |
07.txt | AC | 12 ms | 1276 KB |
08.txt | AC | 9 ms | 1276 KB |
s1.txt | AC | 1 ms | 256 KB |
s2.txt | AC | 1 ms | 256 KB |
s3.txt | AC | 1 ms | 256 KB |