結果
| 問題 | No.5021 Addition Pyramid | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2025-02-25 20:18:30 | 
| 言語 | Kotlin (2.1.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 432 ms / 2,000 ms | 
| コード長 | 576 bytes | 
| コンパイル時間 | 16,921 ms | 
| コンパイル使用メモリ | 460,884 KB | 
| 実行使用メモリ | 61,328 KB | 
| スコア | 1,911,494 | 
| 最終ジャッジ日時 | 2025-02-25 20:19:12 | 
| 合計ジャッジ時間 | 36,065 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
| 純コード判定しない問題か言語 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 50 | 
ソースコード
fun next() = readLine()!!
fun nextInt() = next().toInt()
fun nextLong() = next().toLong()
fun nextDouble() = next().toDouble()
fun nextList() = next().split(" ")
fun nextIntList() = next().split(" ").map { it.toInt() }
fun nextLongList() = next().split(" ").map { it.toLong() }
fun nextDoubleList() = next().split(" ").map { it.toDouble() }
fun main(){
    val N = nextInt()
    val A = Array(N){ IntArray(N) }
    for(i in 0 until N){
        val a = nextIntList()
        for(j in 0..i){
            A[i][j] = a[j]
        }
    }
    println(A.last().joinToString(" "))
}
            
            
            
        