結果

問題 No.646 逆ピラミッド
コンテスト
ユーザー tanson
提出日時 2025-10-31 07:05:44
言語 Standard ML
(MLton 20210117)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 480 bytes
コンパイル時間 7,565 ms
コンパイル使用メモリ 689,400 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-10-31 07:05:53
合計ジャッジ時間 4,270 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

fun readInt () =
    valOf (TextIO.scanStream (Int.scan StringCvt.DEC) TextIO.stdIn)


fun printAns n =
    let
        val s = Int.toString n

        fun makeLine 0 = "\n"
          | makeLine i = s ^ makeLine (i - 1) 

        fun printAnsInner 0 = ignore ()
          | printAnsInner i =
            (print (makeLine i);
             printAnsInner (i - 1))
    in
        printAnsInner n
    end


val () =
    let
        val n = readInt ()
    in
        printAns n
    end
0