結果
問題 | No.292 芸名 |
ユーザー | mban |
提出日時 | 2016-11-04 15:35:17 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 56 ms / 2,000 ms |
コード長 | 677 bytes |
コンパイル時間 | 1,926 ms |
コンパイル使用メモリ | 103,412 KB |
実行使用メモリ | 22,648 KB |
最終ジャッジ日時 | 2023-08-16 13:46:04 |
合計ジャッジ時間 | 3,567 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 54 ms
20,724 KB |
testcase_01 | AC | 55 ms
20,764 KB |
testcase_02 | AC | 54 ms
20,660 KB |
testcase_03 | AC | 55 ms
22,644 KB |
testcase_04 | AC | 54 ms
20,864 KB |
testcase_05 | AC | 55 ms
20,600 KB |
testcase_06 | AC | 55 ms
22,648 KB |
testcase_07 | AC | 55 ms
20,816 KB |
testcase_08 | AC | 55 ms
20,736 KB |
testcase_09 | AC | 56 ms
20,692 KB |
testcase_10 | AC | 56 ms
20,860 KB |
testcase_11 | AC | 55 ms
20,604 KB |
testcase_12 | AC | 54 ms
22,580 KB |
コンパイルメッセージ
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; } }