結果

問題 No.536 人工知能
ユーザー 💕💖💞💕💖💞
提出日時 2017-07-01 06:16:41
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 316 ms / 1,000 ms
コード長 218 bytes
コンパイル時間 11,181 ms
コンパイル使用メモリ 433,292 KB
実行使用メモリ 56,828 KB
最終ジャッジ日時 2024-04-30 15:01:26
合計ジャッジ時間 15,615 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 313 ms
56,776 KB
testcase_01 AC 298 ms
54,148 KB
testcase_02 AC 293 ms
54,168 KB
testcase_03 AC 314 ms
56,700 KB
testcase_04 AC 310 ms
56,732 KB
testcase_05 AC 294 ms
54,268 KB
testcase_06 AC 316 ms
56,708 KB
testcase_07 AC 295 ms
54,084 KB
testcase_08 AC 315 ms
56,828 KB
testcase_09 AC 295 ms
54,400 KB
testcase_10 AC 294 ms
54,192 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:11: warning: parameter 'args' is never used
fun main( args : Array<String> ) {
          ^

ソースコード

diff #

fun main( args : Array<String> ) {
  readLine()?.let {
    when {
    it[it.length-2] == 'a' && it[it.length-1] == 'i' -> it.slice(0..it.length-3) + "AI"
    else -> it + "-AI"
    }.let {
      println(it)
    }
  }
}
0