結果

問題 No.548 国士無双
ユーザー R_FR_F
提出日時 2017-12-08 12:39:48
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 343 ms / 2,000 ms
コード長 543 bytes
コンパイル時間 12,578 ms
コンパイル使用メモリ 424,772 KB
実行使用メモリ 54,220 KB
最終ジャッジ日時 2023-08-12 21:32:26
合計ジャッジ時間 21,908 ms
ジャッジサーバーID
(参考情報)
judge9 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 334 ms
54,128 KB
testcase_01 AC 334 ms
54,060 KB
testcase_02 AC 329 ms
54,132 KB
testcase_03 AC 324 ms
54,220 KB
testcase_04 AC 332 ms
54,124 KB
testcase_05 AC 329 ms
53,756 KB
testcase_06 AC 329 ms
53,880 KB
testcase_07 AC 328 ms
53,672 KB
testcase_08 AC 331 ms
53,884 KB
testcase_09 AC 332 ms
53,872 KB
testcase_10 AC 332 ms
53,856 KB
testcase_11 AC 331 ms
53,792 KB
testcase_12 AC 343 ms
53,856 KB
testcase_13 AC 326 ms
53,916 KB
testcase_14 AC 330 ms
53,808 KB
testcase_15 AC 330 ms
53,892 KB
testcase_16 AC 331 ms
54,000 KB
testcase_17 AC 332 ms
53,836 KB
testcase_18 AC 330 ms
54,040 KB
testcase_19 AC 329 ms
53,836 KB
testcase_20 AC 330 ms
54,096 KB
testcase_21 AC 332 ms
53,996 KB
testcase_22 AC 337 ms
54,200 KB
testcase_23 AC 335 ms
53,844 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:20:10: warning: parameter 'args' is never used
fun main(args: Array<String>){
         ^

ソースコード

diff #

import java.util.Scanner

class No548() {
	var array = mutableListOf('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm')
	var input = Scanner(System. `in`).next()

	fun differenceSet(): MutableList<Char> {
		input.forEach { array.remove(it) }
		return array
	}

	fun judge(){
		var except = differenceSet()
		if (except.size > 1) println("Impossible")
		else if (except.size == 0) println("a\nb\nc\nd\ne\nf\ng\nh\ni\nj\nk\nl\nm")
		else println(except[0])
	}
}

fun main(args: Array<String>){
	var no548 = No548()
	no548.judge()
}
0