結果
問題 | No.292 芸名 |
ユーザー | pirorirori_n712 |
提出日時 | 2018-07-04 00:52:08 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 544 bytes |
コンパイル時間 | 1,822 ms |
コンパイル使用メモリ | 104,864 KB |
実行使用メモリ | 22,888 KB |
最終ジャッジ日時 | 2023-09-13 17:23:18 |
合計ジャッジ時間 | 3,290 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 55 ms
22,788 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | AC | 54 ms
18,752 KB |
testcase_08 | AC | 55 ms
20,780 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; class No292{ static void Main(){ var s=Console.ReadLine().Split(' '); if(s[1]==s[2]){ var i=Int32.Parse(s[1]); Console.WriteLine(s[0].Remove(i,1)); }else{ var i=Int32.Parse(s[1]); var j=Int32.Parse(s[2]); if(i>j){ s[0].Remove(j,1); s[0].Remove(i-1,1); }else{ s[0].Remove(i,1); s[0].Remove(j-1,1); } Console.WriteLine(s[0]); } } }