Submission #1646762


Source Code Expand

using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
class Simple {
    int N, A, B;
    int[] t;
    void Solve() {
        //input
        N = io.Int;
        A = io.Int;
        B = io.Int;
        t = new int[N];
        for (int i = 0; i < N; ++i)
            t[i] = io.Int;
        //cal
        var ans = 0;
        for (int i = 0; i < N; ++i)
            if (t[i] < A || B <= t[i])
                ans++;
        //ret
        Console.WriteLine(ans);
    }

    SimpleIO io = new SimpleIO();
    public static void Main(string[] args) { new Simple().Stream(); }
    void Stream() {
        Solve();
        io.writeFlush();
    }   
}

class SimpleIO {
    string[] nextBuffer;
    int BufferCnt;
    char[] cs = new char[] { ' ' };
    StreamWriter sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
    public SimpleIO() {
        nextBuffer = new string[0];
        BufferCnt = 0;
        Console.SetOut(sw);
    }
    public string Next() {
        if (BufferCnt < nextBuffer.Length)
            return nextBuffer[BufferCnt++];
        string st = Console.ReadLine();
        while (st == "")
            st = Console.ReadLine();
        nextBuffer = st.Split(cs, StringSplitOptions.RemoveEmptyEntries);
        BufferCnt = 0;
        return nextBuffer[BufferCnt++];
    }
    public string String => Next();
    public char Char => char.Parse(String);
    public int Int => int.Parse(String);
    public long Long => long.Parse(String);
    public double Double => double.Parse(String);
    public void writeFlush() { Console.Out.Flush(); }
}

Submission Info

Submission Time
Task A - A Barricade
User rui0422
Language C# (Mono 4.6.2.0)
Score 66
Code Size 1774 Byte
Status AC
Exec Time 23 ms
Memory 11092 KB

Judge Result

Set Name All
Score / Max Score 66 / 66
Status
AC × 9
Set Name Test Cases
All 00_sample.txt, 01_sample.txt, 02_sampe.txt, 03_sample.txt, corner_case_03.txt, corner_case_04.txt, random_case_00.txt, random_case_01.txt, random_case_02.txt
Case Name Status Exec Time Memory
00_sample.txt AC 22 ms 9044 KB
01_sample.txt AC 22 ms 9044 KB
02_sampe.txt AC 22 ms 11092 KB
03_sample.txt AC 22 ms 9044 KB
corner_case_03.txt AC 22 ms 9044 KB
corner_case_04.txt AC 23 ms 11092 KB
random_case_00.txt AC 23 ms 11092 KB
random_case_01.txt AC 22 ms 11092 KB
random_case_02.txt AC 23 ms 11092 KB