結果
問題 | No.1534 おなかがいたい |
ユーザー | nakamura0422 |
提出日時 | 2023-01-11 15:21:46 |
言語 | C# (.NET 8.0.203) |
結果 |
WA
|
実行時間 | - |
コード長 | 347 bytes |
コンパイル時間 | 7,087 ms |
コンパイル使用メモリ | 145,184 KB |
実行使用メモリ | 165,296 KB |
最終ジャッジ日時 | 2023-08-23 21:52:57 |
合計ジャッジ時間 | 9,738 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 68 ms
31,504 KB |
testcase_01 | AC | 69 ms
31,724 KB |
testcase_02 | AC | 68 ms
30,904 KB |
testcase_03 | AC | 69 ms
31,732 KB |
testcase_04 | AC | 69 ms
31,720 KB |
testcase_05 | AC | 68 ms
29,632 KB |
testcase_06 | AC | 67 ms
30,824 KB |
testcase_07 | AC | 69 ms
31,688 KB |
testcase_08 | WA | - |
testcase_09 | AC | 66 ms
30,576 KB |
testcase_10 | AC | 68 ms
30,428 KB |
testcase_11 | AC | 68 ms
30,124 KB |
testcase_12 | AC | 83 ms
31,952 KB |
testcase_13 | AC | 78 ms
31,724 KB |
testcase_14 | AC | 77 ms
31,648 KB |
testcase_15 | WA | - |
testcase_16 | AC | 114 ms
34,256 KB |
testcase_17 | AC | 114 ms
33,972 KB |
testcase_18 | AC | 113 ms
34,128 KB |
testcase_19 | AC | 69 ms
31,656 KB |
testcase_20 | AC | 155 ms
36,232 KB |
testcase_21 | AC | 68 ms
29,920 KB |
testcase_22 | AC | 67 ms
165,296 KB |
コンパイルメッセージ
Determining projects to restore... Restored /home/judge/data/code/main.csproj (in 123 ms). .NET 向け Microsoft (R) Build Engine バージョン 17.0.0-preview-21470-01+cb055d28f Copyright (C) Microsoft Corporation.All rights reserved. プレビュー版の .NET を使用しています。https://aka.ms/dotnet-core-preview をご覧ください main -> /home/judge/data/code/bin/Release/net6.0/main.dll main -> /home/judge/data/code/bin/Release/net6.0/publish/
ソースコード
using System; using System.Collections.Generic; using System.Linq; static class Ponponpain { static void Main() { var s = Console.ReadLine(); var endIndex = s.IndexOf("pain"); if(endIndex <= 0) Console.WriteLine(-1); else Console.WriteLine(s.Substring(0, endIndex).Split('p').Where(x => x.StartsWith("on")).Count()-1); } }