結果
問題 | No.292 芸名 |
ユーザー |
![]() |
提出日時 | 2015-11-03 01:20:23 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 26 ms / 2,000 ms |
コード長 | 1,113 bytes |
コンパイル時間 | 1,011 ms |
コンパイル使用メモリ | 112,344 KB |
実行使用メモリ | 25,884 KB |
最終ジャッジ日時 | 2024-09-13 11:48:14 |
合計ジャッジ時間 | 1,962 ms |
ジャッジサーバーID (参考情報) |
judge2 / 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;namespace Yuki{class Program{static void Main(string[] args){string[] a = Console.ReadLine().Split();string S = a[0];int t = int.Parse(a[1]);int u = int.Parse(a[2]);if (t == u){S = S.Remove(t, 1);}else if (t > u){S = S.Remove(t, 1);S = S.Remove(u, 1);}else{S = S.Remove(u, 1);S = S.Remove(t, 1);}Console.Write(S);}static int[] ConvertStringArrayToIntArray(string[] array){return Array.ConvertAll(array, str => int.Parse(str));}static List<int> ConvertStringArrayToIntList(string[] str){var list = new List<int>();foreach (var c in str) list.Add(int.Parse(c));return list;}}}