結果
| 問題 |
No.292 芸名
|
| コンテスト | |
| ユーザー |
pirorirori_n712
|
| 提出日時 | 2018-07-04 00:58:01 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 2,000 ms |
| コード長 | 565 bytes |
| コンパイル時間 | 746 ms |
| コンパイル使用メモリ | 103,396 KB |
| 実行使用メモリ | 26,072 KB |
| 最終ジャッジ日時 | 2024-07-01 02:05:54 |
| 合計ジャッジ時間 | 1,646 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / 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;
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]);
string a;
if(i>j){
a=s[0].Remove(j,1);
a=a.Remove(i-1,1);
}else{
a=s[0].Remove(i,1);
a=a.Remove(j-1,1);
}
Console.WriteLine(a);
}
}
}
pirorirori_n712