提出 #236764


ソースコード 拡げる

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;




class Program {
    static int[] ReadInts() {
        return Console.ReadLine().Split(' ').Select((e => int.Parse(e))).ToArray();
    }
    static void Main(string[] args) {
        var a = Console.ReadLine();
        var b = ReadInts()[0];
        var m = a.Length;
        a = a.Last() + a;
        Console.WriteLine(a[b % m]);

    }

}

提出情報

提出日時
問題 B - とても長い文字列
ユーザ BlackLemon
言語 C# (Mono 2.10.8.1)
得点 100
コード長 452 Byte
結果 AC
実行時間 149 ms
メモリ 8524 KiB

ジャッジ結果

セット名 sub All
得点 / 配点 30 / 30 70 / 70
結果
AC × 12
AC × 21
セット名 テストケース
sub test_01A.txt, test_02A.txt, test_04A.txt, test_05A.txt, test_07A.txt, test_09A.txt, test_11A.txt, test_13A.txt, test_14A.txt, test_15A.txt, test_17A.txt, test_18A.txt
All test_01A.txt, test_02A.txt, test_03.txt, test_04A.txt, test_05A.txt, test_06.txt, test_07A.txt, test_08.txt, test_09A.txt, test_10.txt, test_11A.txt, test_12.txt, test_13A.txt, test_14A.txt, test_15A.txt, test_16.txt, test_17A.txt, test_18A.txt, sample_01.txt, sample_02.txt, sample_03.txt
ケース名 結果 実行時間 メモリ
sample_01.txt AC 139 ms 8396 KiB
sample_02.txt AC 141 ms 8412 KiB
sample_03.txt AC 141 ms 8496 KiB
test_01A.txt AC 140 ms 8464 KiB
test_02A.txt AC 140 ms 8400 KiB
test_03.txt AC 142 ms 8412 KiB
test_04A.txt AC 141 ms 8396 KiB
test_05A.txt AC 146 ms 8396 KiB
test_06.txt AC 143 ms 8424 KiB
test_07A.txt AC 149 ms 8328 KiB
test_08.txt AC 142 ms 8396 KiB
test_09A.txt AC 139 ms 8404 KiB
test_10.txt AC 149 ms 8400 KiB
test_11A.txt AC 142 ms 8404 KiB
test_12.txt AC 145 ms 8524 KiB
test_13A.txt AC 144 ms 8388 KiB
test_14A.txt AC 142 ms 8420 KiB
test_15A.txt AC 143 ms 8464 KiB
test_16.txt AC 144 ms 8452 KiB
test_17A.txt AC 144 ms 8380 KiB
test_18A.txt AC 145 ms 8400 KiB