結果
問題 |
No.2460 #強調#
|
ユーザー |
![]() |
提出日時 | 2023-09-10 22:50:44 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 23 ms / 2,000 ms |
コード長 | 315 bytes |
コンパイル時間 | 916 ms |
コンパイル使用メモリ | 100,864 KB |
実行使用メモリ | 17,280 KB |
最終ジャッジ日時 | 2024-06-28 13:42:43 |
合計ジャッジ時間 | 1,924 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; public class Hello { static void Main() { var s = Console.ReadLine().Trim(); getAns(s); } static void getAns(string s) { var p0 = s.IndexOf('#'); var p1 = s.IndexOf('#', p0 + 1); Console.WriteLine(s.Substring(p0 + 1, p1 - p0 - 1)); } }