結果

問題 No.547 未知の言語
ユーザー 💕💖💞💕💖💞
提出日時 2017-09-06 00:18:16
言語 Kotlin
(1.9.10)
結果
AC  
実行時間 303 ms / 2,000 ms
コード長 321 bytes
コンパイル時間 12,382 ms
コンパイル使用メモリ 431,552 KB
実行使用メモリ 53,256 KB
最終ジャッジ日時 2023-08-12 20:32:11
合計ジャッジ時間 24,033 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 287 ms
52,952 KB
testcase_01 AC 289 ms
52,960 KB
testcase_02 AC 288 ms
53,176 KB
testcase_03 AC 287 ms
53,040 KB
testcase_04 AC 286 ms
52,916 KB
testcase_05 AC 285 ms
53,080 KB
testcase_06 AC 288 ms
53,100 KB
testcase_07 AC 296 ms
52,936 KB
testcase_08 AC 296 ms
52,948 KB
testcase_09 AC 291 ms
52,764 KB
testcase_10 AC 289 ms
52,868 KB
testcase_11 AC 290 ms
53,112 KB
testcase_12 AC 289 ms
53,240 KB
testcase_13 AC 291 ms
53,188 KB
testcase_14 AC 286 ms
52,936 KB
testcase_15 AC 281 ms
52,864 KB
testcase_16 AC 292 ms
53,092 KB
testcase_17 AC 289 ms
53,020 KB
testcase_18 AC 294 ms
52,784 KB
testcase_19 AC 292 ms
52,920 KB
testcase_20 AC 297 ms
53,024 KB
testcase_21 AC 299 ms
52,940 KB
testcase_22 AC 295 ms
52,948 KB
testcase_23 AC 295 ms
52,864 KB
testcase_24 AC 297 ms
53,036 KB
testcase_25 AC 294 ms
52,928 KB
testcase_26 AC 303 ms
52,916 KB
testcase_27 AC 301 ms
52,960 KB
testcase_28 AC 294 ms
52,948 KB
testcase_29 AC 293 ms
53,096 KB
testcase_30 AC 290 ms
53,060 KB
testcase_31 AC 286 ms
53,256 KB
testcase_32 AC 294 ms
53,144 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:11: warning: parameter 'args' is never used
fun main( args : Array<String> ) {
          ^

ソースコード

diff #

fun main( args : Array<String> ) {
  readLine()
  val (x1, x2) = (0..1).map { readLine()!!.split(" ") }

  x1.zip(x2).mapIndexed { i,xs ->
    val (a,b) = xs
    Pair(i, a == b)
  }.filter { 
    it.second == false
  }.let { 
    val ans = it.first()
    val i = ans.first
    println("${i+1}\n${x1[i]}\n${x2[i]}")
  }
}
0