結果
問題 | No.791 うし数列 |
ユーザー | kmtrc130 |
提出日時 | 2019-03-18 13:26:11 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 369 bytes |
コンパイル時間 | 3,912 ms |
コンパイル使用メモリ | 103,520 KB |
実行使用メモリ | 25,684 KB |
最終ジャッジ日時 | 2023-09-25 09:13:29 |
合計ジャッジ時間 | 4,065 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 54 ms
21,412 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 53 ms
23,552 KB |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | AC | 54 ms
21,480 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | AC | 57 ms
23,496 KB |
testcase_13 | AC | 55 ms
19,340 KB |
testcase_14 | AC | 55 ms
21,460 KB |
testcase_15 | AC | 55 ms
21,428 KB |
testcase_16 | AC | 54 ms
21,464 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Linq; class Program { public void Solve() { string N = Console.ReadLine(); if (0 < N.Substring(1).Where(x => x != '3').Count()) { Console.WriteLine(-1); } Console.WriteLine(N.Substring(1).Length); } static void Main() { var solver = new Program(); solver.Solve(); } }