結果

問題 No.1423 Triangle of Multiples
ユーザー face4face4
提出日時 2021-04-13 09:54:48
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 941 ms / 2,000 ms
コード長 293 bytes
コンパイル時間 10,655 ms
コンパイル使用メモリ 414,748 KB
実行使用メモリ 60,704 KB
最終ジャッジ日時 2023-09-11 13:55:07
合計ジャッジ時間 15,146 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 315 ms
54,188 KB
testcase_01 AC 330 ms
54,276 KB
testcase_02 AC 941 ms
60,376 KB
testcase_03 AC 909 ms
60,704 KB
testcase_04 AC 852 ms
60,096 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import kotlin.math.max

fun main() {
    val t = readLine()!!.toInt()
    repeat(t){
        var (a, b, c) = readLine()!!.split(" ").map{it.toLong()}
        val ma = max(a, max(b, c))
        a = ma/a*a
        b = ma/b*b
        c = ma/c*c
        println("%d %d %d".format(a, b, c))
    }
}
0