Counting Lines

View as PDF

Submit solution

Points: 3
Time limit: 1.0s
Memory limit: 64M

Problem type

Theodore is writing code! He wants to count how many lines of code he has, but doesn't know how to.

Can you help him count?

Input Specification

An unknown number of lines of code.

Output specification

The number of lines of code that Theodore has written.

Sample Input

getArgID(char const * target_arg)
    if (strlen(target_arg) == 2) if (target_arg[0] == '-')
        switch (target_arg[1])
            case 'i': return ARG_IN;
            case 'o': return ARG_OUT;
            case 't': return ARG_TAPE;
            case 'x': return ARG_OS;
            case 's': return ARG_DO_ASM;
    return 0;

Sample Output



  • 0
    yes  commented on Jan. 31, 2019, 4:43 p.m.

    Hey! That's my code!

    • -1
      _  commented on Jan. 31, 2019, 4:43 p.m.