結果

問題 No.292 芸名
ユーザー 5h0t4r05h0t4r0
提出日時 2015-11-02 14:53:50
言語 Scala(Beta)
(3.4.0)
結果
AC  
実行時間 958 ms / 2,000 ms
コード長 315 bytes
コンパイル時間 8,111 ms
コンパイル使用メモリ 249,392 KB
実行使用メモリ 63,788 KB
最終ジャッジ日時 2023-09-11 14:11:48
合計ジャッジ時間 22,572 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 953 ms
63,428 KB
testcase_01 AC 935 ms
63,684 KB
testcase_02 AC 945 ms
63,372 KB
testcase_03 AC 958 ms
63,344 KB
testcase_04 AC 953 ms
63,280 KB
testcase_05 AC 932 ms
63,788 KB
testcase_06 AC 944 ms
63,236 KB
testcase_07 AC 946 ms
63,452 KB
testcase_08 AC 935 ms
63,308 KB
testcase_09 AC 922 ms
63,492 KB
testcase_10 AC 924 ms
63,564 KB
testcase_11 AC 930 ms
63,532 KB
testcase_12 AC 930 ms
63,288 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

object Yuki292 extends App{
  val input = new java.util.Scanner(System.in)
  val s = input.next
  val t = input.nextInt
  val u = input.nextInt

  val result = s.zipWithIndex.map{ case (x, index) => 
    index match {
     case i if i == t || i == u => ""
     case _ => x
     }
   }.mkString

   println(result)
}
0