結果

問題 No.799 赤黒かーどげぇむ
ユーザー fal_rndfal_rnd
提出日時 2020-02-05 14:43:40
言語 Scala(Beta)
(3.4.0)
結果
AC  
実行時間 972 ms / 2,000 ms
コード長 166 bytes
コンパイル時間 15,159 ms
コンパイル使用メモリ 253,572 KB
実行使用メモリ 65,652 KB
最終ジャッジ日時 2023-10-23 19:30:43
合計ジャッジ時間 34,919 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 949 ms
65,604 KB
testcase_01 AC 962 ms
65,608 KB
testcase_02 AC 949 ms
65,628 KB
testcase_03 AC 939 ms
65,616 KB
testcase_04 AC 938 ms
65,576 KB
testcase_05 AC 938 ms
65,616 KB
testcase_06 AC 946 ms
65,620 KB
testcase_07 AC 960 ms
65,596 KB
testcase_08 AC 943 ms
65,596 KB
testcase_09 AC 939 ms
65,632 KB
testcase_10 AC 972 ms
65,596 KB
testcase_11 AC 946 ms
65,604 KB
testcase_12 AC 928 ms
65,584 KB
testcase_13 AC 940 ms
65,652 KB
testcase_14 AC 941 ms
65,580 KB
testcase_15 AC 943 ms
65,632 KB
testcase_16 AC 933 ms
65,540 KB
testcase_17 AC 968 ms
65,556 KB
testcase_18 AC 955 ms
65,628 KB
testcase_19 AC 928 ms
65,596 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

object Main extends App{
	val s=new java.util.Scanner(System.in)
	val a,b=(s.nextInt to s.nextInt)
	println(a.map(i=>if(b.contains(i))b.length-1 else b.length).sum)
}
0