結果
| 問題 | No.1534 おなかがいたい |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-01-11 15:10:38 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 327 bytes |
| 記録 | |
| コンパイル時間 | 16,193 ms |
| コンパイル使用メモリ | 165,956 KB |
| 実行使用メモリ | 183,848 KB |
| 最終ジャッジ日時 | 2024-12-22 06:36:24 |
| 合計ジャッジ時間 | 14,600 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 4 WA * 15 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (99 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.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("ponpain");
if(endIndex <= 0)
return;
Console.WriteLine(s.Substring(0, endIndex).Split('p').Where(x => x.StartsWith("on")).Count());
}
}