結果
| 問題 | No.292 芸名 | 
| コンテスト | |
| ユーザー |  mban | 
| 提出日時 | 2016-11-04 15:35:17 | 
| 言語 | C#(csc) (csc 3.9.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 26 ms / 2,000 ms | 
| コード長 | 677 bytes | 
| コンパイル時間 | 851 ms | 
| コンパイル使用メモリ | 107,064 KB | 
| 実行使用メモリ | 25,848 KB | 
| 最終ジャッジ日時 | 2024-11-25 02:56:39 | 
| 合計ジャッジ時間 | 1,951 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 10 | 
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Magatro
{
    static void Main()
    {
        string[] Stu = Console.ReadLine().Split(' ');
        int t=int.Parse(Stu[1]), u=int.Parse(Stu[2]);
        string S = Stu[0];
        if (t < u)
        {
            Swap(ref t, ref u);
        }
        if (t == u)
        {
            S = S.Remove(t, 1);
        }
        else
        {
            S = S.Remove(t, 1);
            S = S.Remove(u, 1);
        }
        Console.WriteLine(S);
    }
    static void Swap(ref int t,ref int u)
    {
        int r = t;
        t = u;
        u = r;
    }
}
            
            
            
        