Submission #15413523


Source Code Expand

Copy
// dfmt off
T lread(T=long)(){return readln.chomp.to!T;}T[] lreads(T=long)(long n){return iota(n).map!((_)=>lread!T).array;}
T[] aryread(T=long)(){return readln.split.to!(T[]);}void arywrite(T)(T a){a.map!text.join(' ').writeln;}
void scan(L...)(ref L A){auto l=readln.split;foreach(i,T;L){A[i]=l[i].to!T;}}alias sread=()=>readln.chomp();
void dprint(L...)(lazy L A){debug{auto l=new string[](L.length);static foreach(i,a;A)l[i]=a.text;arywrite(l);}}
alias PQueue(T,alias l="b<a")=BinaryHeap!(Array!T,l);import std, core.bitop;
// dfmt on
void main()
{
    auto input = stdin.byLine.map!split.joiner;

    long X;
    X = input.front.to!long;
    input.popFront;

    solve(X);
}

void solve(long X)
{
    writeln(10 - X / 200);
}

Submission Info

Submission Time
Task A - Kyu in AtCoder
User kotet
Language D (DMD 2.091.0)
Score 100
Code Size 731 Byte
Status AC
Exec Time 8 ms
Memory 3740 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 20
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All in01.txt, in02.txt, in03.txt, in04.txt, in05.txt, in06.txt, in07.txt, in08.txt, in09.txt, in10.txt, in11.txt, in12.txt, in13.txt, in14.txt, in15.txt, in16.txt, in17.txt, in18.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
in01.txt AC 8 ms 3552 KB
in02.txt AC 2 ms 3624 KB
in03.txt AC 2 ms 3504 KB
in04.txt AC 2 ms 3532 KB
in05.txt AC 2 ms 3476 KB
in06.txt AC 2 ms 3540 KB
in07.txt AC 2 ms 3676 KB
in08.txt AC 2 ms 3688 KB
in09.txt AC 2 ms 3536 KB
in10.txt AC 2 ms 3664 KB
in11.txt AC 2 ms 3492 KB
in12.txt AC 2 ms 3484 KB
in13.txt AC 2 ms 3740 KB
in14.txt AC 2 ms 3516 KB
in15.txt AC 2 ms 3624 KB
in16.txt AC 2 ms 3628 KB
in17.txt AC 2 ms 3704 KB
in18.txt AC 2 ms 3572 KB
sample_01.txt AC 2 ms 3564 KB
sample_02.txt AC 2 ms 3624 KB