結果
問題 | No.9002 FizzBuzz(テスト用) |
ユーザー | nobigomu |
提出日時 | 2018-05-31 17:33:50 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 59 ms / 5,000 ms |
コード長 | 216 bytes |
コンパイル時間 | 4,975 ms |
コンパイル使用メモリ | 158,472 KB |
実行使用メモリ | 24,272 KB |
最終ジャッジ日時 | 2023-09-12 20:59:19 |
合計ジャッジ時間 | 5,115 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 58 ms
24,272 KB |
testcase_01 | AC | 59 ms
22,272 KB |
testcase_02 | AC | 59 ms
20,364 KB |
testcase_03 | AC | 57 ms
22,296 KB |
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0 Copyright (c) Microsoft Corporation. All Rights Reserved. /home/judge/data/code/Main.fs(2,5): warning FS0058: Possible incorrect indentation: this token is offside of context started at position (1:42). Try indenting this token further or using standard formatting conventions. /home/judge/data/code/Main.fs(2,5): warning FS0058: Possible incorrect indentation: this token is offside of context started at position (1:42). Try indenting this token further or using standard formatting conventions.
ソースコード
(stdin.ReadLine >> int >> fun n -> seq { for i in 1..n -> match (i%3,i%5) with | (0,0) -> "FizzBuzz" | (0,_) -> "Fizz" | (_,0) -> "Buzz" | (_,_) -> i.ToString () }) () |> Seq.iter stdout.WriteLine