結果
| 問題 |
No.536 人工知能
|
| コンテスト | |
| ユーザー |
💕💖💞
|
| 提出日時 | 2017-07-01 06:16:41 |
| 言語 | Kotlin (2.1.0) |
| 結果 |
AC
|
| 実行時間 | 311 ms / 1,000 ms |
| コード長 | 218 bytes |
| コンパイル時間 | 13,247 ms |
| コンパイル使用メモリ | 427,932 KB |
| 実行使用メモリ | 51,108 KB |
| 最終ジャッジ日時 | 2024-11-20 10:45:48 |
| 合計ジャッジ時間 | 14,894 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
コンパイルメッセージ
Main.kt:1:11: warning: parameter 'args' is never used
fun main( args : Array<String> ) {
^
ソースコード
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)
}
}
}
💕💖💞