結果

問題 No.292 芸名
ユーザー fujitafujita
提出日時 2023-05-12 16:20:06
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 736 bytes
コンパイル時間 18,009 ms
コンパイル使用メモリ 147,812 KB
実行使用メモリ 162,868 KB
最終ジャッジ日時 2023-08-19 01:15:58
合計ジャッジ時間 16,213 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
28,068 KB
testcase_01 AC 38 ms
30,204 KB
testcase_02 AC 38 ms
28,028 KB
testcase_03 AC 38 ms
27,892 KB
testcase_04 AC 40 ms
30,116 KB
testcase_05 AC 38 ms
28,056 KB
testcase_06 AC 38 ms
30,204 KB
testcase_07 AC 37 ms
27,732 KB
testcase_08 AC 38 ms
27,872 KB
testcase_09 AC 38 ms
28,028 KB
testcase_10 AC 38 ms
28,204 KB
testcase_11 AC 37 ms
28,168 KB
testcase_12 AC 38 ms
162,868 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  Determining projects to restore...
  Restored /home/judge/data/code/main.csproj (in 215 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/

ソースコード

diff #

using System.Collections.Generic;
using System;
using System.Drawing;
namespace yukicoder
{
    class Program
    {

        static void Main(string[] args)
        {
            var name = Console.ReadLine().Split(" ");
           
            string S = name[0];
            int t = int.Parse(name[1]);
            int u = int.Parse(name[2]);

            string str = S.Remove(t , 1);

            if(!(t == u) && t > u)
            {
                Console.WriteLine(str.Remove(u , 1));
            }
            else if (!(t == u) && t < u)
            {
                Console.WriteLine(str.Remove(u - 1 , 1));
            }
            else
            {
                Console.WriteLine(str);
            }

        }
    }
}
0