結果
問題 | No.495 (^^*) Easy |
ユーザー |
![]() |
提出日時 | 2023-05-10 15:23:46 |
言語 | C# (.NET 8.0.404) |
結果 |
AC
|
実行時間 | 82 ms / 2,000 ms |
コード長 | 1,076 bytes |
コンパイル時間 | 17,162 ms |
コンパイル使用メモリ | 168,716 KB |
実行使用メモリ | 203,716 KB |
最終ジャッジ日時 | 2024-11-26 20:47:04 |
合計ジャッジ時間 | 11,370 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (136 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;namespace yukicoder{class Program{static void Main(string[] args){var str = Console.ReadLine();string[] strings = new string[str.Length];int L = 0 , R = 0;for(int i = 0; i < str.Length; i++){if (str.Substring(0, 1) == "#" || str.Substring(1, 1) == "#" || str.Substring(2, 1) == "#" ||str.Substring(3, 1) == "#" || str.Substring(4, 1) == "#"){Console.WriteLine(L + " " + R);break;}else if(str.Substring(i, 5) == "(^^*)"){L++;}else if(str.Substring(i, 5) == "(*^^)"){R++;}else if(str.Substring(i + 4, 1) == "#"){Console.WriteLine(L + " " + R);break;}}}}}