結果

問題 No.207 世界のなんとか
ユーザー regeregeregerege
提出日時 2015-09-04 00:24:56
言語 F#
(F# 4.0)
結果
AC  
実行時間 304 ms / 5,000 ms
コード長 327 bytes
コンパイル時間 11,508 ms
コンパイル使用メモリ 192,760 KB
実行使用メモリ 35,340 KB
最終ジャッジ日時 2024-04-17 16:23:56
合計ジャッジ時間 13,279 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 304 ms
34,944 KB
testcase_01 AC 293 ms
34,836 KB
testcase_02 AC 290 ms
35,088 KB
testcase_03 AC 293 ms
34,956 KB
testcase_04 AC 291 ms
34,844 KB
testcase_05 AC 290 ms
34,844 KB
testcase_06 AC 294 ms
34,964 KB
testcase_07 AC 294 ms
34,836 KB
testcase_08 AC 291 ms
34,956 KB
testcase_09 AC 293 ms
34,828 KB
testcase_10 AC 293 ms
34,968 KB
testcase_11 AC 288 ms
34,732 KB
testcase_12 AC 288 ms
35,340 KB
testcase_13 AC 295 ms
35,088 KB
testcase_14 AC 290 ms
35,096 KB
testcase_15 AC 290 ms
35,096 KB
testcase_16 AC 292 ms
34,960 KB
testcase_17 AC 288 ms
34,088 KB
testcase_18 AC 283 ms
35,032 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (410 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

    let args = stdin.ReadLine().Split(' ')
    let a = int args.[0]
    let b = int args.[1]
    let f n =
        Seq.unfold (fun a -> Some (a,a/10)) n
        |> Seq.takeWhile((<=)3)
        |> Seq.exists(fun i -> i % 10 = 3)
        || n % 3 = 0
    [a..b]
    |> Seq.filter f
    |> Seq.sort
    |> Seq.iter (printfn "%d")
0