結果
問題 | No.964 2020 |
ユーザー | guricerin |
提出日時 | 2020-01-13 20:50:15 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 64 ms / 2,020 ms |
コード長 | 836 bytes |
コンパイル時間 | 4,049 ms |
コンパイル使用メモリ | 159,600 KB |
実行使用メモリ | 24,380 KB |
最終ジャッジ日時 | 2023-08-23 13:29:43 |
合計ジャッジ時間 | 5,720 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 63 ms
22,308 KB |
testcase_01 | AC | 64 ms
22,388 KB |
testcase_02 | AC | 64 ms
22,360 KB |
testcase_03 | AC | 64 ms
24,368 KB |
testcase_04 | AC | 64 ms
24,380 KB |
testcase_05 | AC | 64 ms
22,416 KB |
testcase_06 | AC | 64 ms
24,304 KB |
testcase_07 | AC | 63 ms
22,484 KB |
testcase_08 | AC | 64 ms
22,456 KB |
testcase_09 | AC | 63 ms
22,488 KB |
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0 Copyright (c) Microsoft Corporation. All Rights Reserved.
ソースコード
open System open System.Collections.Generic [<AutoOpen>] module Cin = let read f = stdin.ReadLine() |> f let reada f = stdin.ReadLine().Split() |> Array.map f let readChars() = read string |> Seq.toArray let readInts() = readChars() |> Array.map (fun x -> Convert.ToInt32(x.ToString())) [<AutoOpen>] module Cout = let writer = new IO.StreamWriter(new IO.BufferedStream(Console.OpenStandardOutput())) let print (s: string) = writer.Write s let println (s: string) = writer.WriteLine s let inline puts (s: ^a) = string s |> println let main() = let x = read int let ls = if x <> 10 then [ for i in x .. -1 .. 1 -> string i ] else [ for i in 9 .. -1 .. 0 -> string i ] for i in 1 .. x do let s = String.Join("", ls) print s puts "" () main() writer.Close()