結果
問題 | No.207 世界のなんとか |
ユーザー |
![]() |
提出日時 | 2016-03-31 00:02:14 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 337 ms / 5,000 ms |
コード長 | 504 bytes |
コンパイル時間 | 13,455 ms |
コンパイル使用メモリ | 185,456 KB |
実行使用メモリ | 35,872 KB |
最終ジャッジ日時 | 2024-10-09 10:50:04 |
合計ジャッジ時間 | 14,567 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (314 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/
ソースコード
open Systemopen System.Textlet isThree n:int =let mutable num = nlet mutable ret = 0while num > 0 doif num % 10 = 3 thennum <- 0ret <- 1num <- num / 10ret[<EntryPoint>]let main args =let IN = Console.ReadLine().Split(' ')let A, B = Int32.Parse(IN.[0]), Int32.Parse(IN.[1])for x = A to B doif x % 3 = 0 || isThree(x) = 1 thenprintfn "%d" xdone0