結果

問題 No.1005 BOT対策
ユーザー phsplsphspls
提出日時 2020-03-25 23:31:14
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 312 bytes
コンパイル時間 2,622 ms
コンパイル使用メモリ 97,024 KB
実行使用メモリ 22,624 KB
最終ジャッジ日時 2023-08-30 11:52:40
合計ジャッジ時間 5,621 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
22,476 KB
testcase_01 AC 56 ms
20,560 KB
testcase_02 AC 56 ms
18,508 KB
testcase_03 AC 55 ms
22,568 KB
testcase_04 AC 49 ms
20,392 KB
testcase_05 AC 55 ms
20,584 KB
testcase_06 AC 50 ms
20,444 KB
testcase_07 AC 51 ms
22,532 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 54 ms
20,600 KB
testcase_11 AC 55 ms
20,516 KB
testcase_12 WA -
testcase_13 AC 55 ms
20,536 KB
testcase_14 AC 55 ms
20,508 KB
testcase_15 AC 56 ms
22,608 KB
testcase_16 AC 56 ms
20,548 KB
testcase_17 AC 56 ms
20,512 KB
testcase_18 WA -
testcase_19 AC 51 ms
18,476 KB
testcase_20 AC 51 ms
20,456 KB
testcase_21 AC 55 ms
22,624 KB
testcase_22 AC 54 ms
20,556 KB
testcase_23 AC 55 ms
20,580 KB
testcase_24 AC 54 ms
20,484 KB
testcase_25 AC 55 ms
20,584 KB
testcase_26 AC 55 ms
20,500 KB
testcase_27 AC 51 ms
22,568 KB
testcase_28 WA -
testcase_29 AC 54 ms
18,440 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

public class P1005 {
    public static void Main() {
        var s = Console.ReadLine();
        var t = Console.ReadLine();
        if(t.Length == 1) {
            Console.WriteLine("-1");
        } else {
            Console.WriteLine(s.Split(t).Length - 1);
        }
    }
}
0