AtCoder Beginner Contest 054

Submission #1588423

Source codeソースコード

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 A, B;
    void Solve() {
        //input
        A = io.Int;
        B = io.Int;
        //cal
        if (A == 1)
            A = 14;
        if (B == 1)
            B = 14;
        //res
        Console.WriteLine(A > B ? "Alice" : A == B ? "Draw" : "Bob");
    }

    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

Task問題 A - One Card Poker
User nameユーザ名 takt
Created time投稿日時
Language言語 C# (Mono 4.6.2.0)
Status状態 AC
Score得点 100
Source lengthソースコード長 1644 Byte
File nameファイル名
Exec time実行時間 20 ms
Memory usageメモリ使用量 11092 KB

Test case

Set

Set name Score得点 / Max score Cases
Sample - sample_01.txt,sample_02.txt,sample_03.txt
All 100 / 100 sample_01.txt,sample_02.txt,sample_03.txt,subtask_1_01.txt,subtask_1_02.txt,subtask_1_03.txt,subtask_1_04.txt,subtask_1_05.txt,subtask_1_06.txt,subtask_1_07.txt

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
sample_01.txt AC 20 ms 11092 KB
sample_02.txt AC 19 ms 11092 KB
sample_03.txt AC 20 ms 9044 KB
subtask_1_01.txt AC 19 ms 11092 KB
subtask_1_02.txt AC 19 ms 11092 KB
subtask_1_03.txt AC 19 ms 11092 KB
subtask_1_04.txt AC 19 ms 9044 KB
subtask_1_05.txt AC 19 ms 11092 KB
subtask_1_06.txt AC 20 ms 11092 KB
subtask_1_07.txt AC 20 ms 9044 KB