結果

問題 No.1057 素敵な日
ユーザー face4face4
提出日時 2021-04-10 23:49:41
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 314 ms / 2,000 ms
コード長 136 bytes
コンパイル時間 11,736 ms
コンパイル使用メモリ 419,308 KB
実行使用メモリ 57,356 KB
最終ジャッジ日時 2023-09-09 03:45:16
合計ジャッジ時間 15,630 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 305 ms
57,108 KB
testcase_01 AC 304 ms
56,920 KB
testcase_02 AC 305 ms
56,940 KB
testcase_03 AC 304 ms
57,008 KB
testcase_04 AC 301 ms
56,868 KB
testcase_05 AC 304 ms
57,016 KB
testcase_06 AC 307 ms
57,004 KB
testcase_07 AC 311 ms
57,356 KB
testcase_08 AC 314 ms
57,124 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

fun main() {
    val (a, b) = readLine()!!.split(" ").map { it.toInt() }.sorted()
    println(if(b==1) 1 else if(a==b) a*2-1 else a*2)
}
0