結果

問題 No.1423 Triangle of Multiples
ユーザー face4face4
提出日時 2021-04-13 09:54:48
言語 Kotlin
(2.1.0)
結果
AC  
実行時間 869 ms / 2,000 ms
コード長 293 bytes
コンパイル時間 9,932 ms
コンパイル使用メモリ 426,712 KB
実行使用メモリ 90,772 KB
最終ジャッジ日時 2024-06-29 04:09:37
合計ジャッジ時間 14,714 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

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