結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
kuuso1
|
| 提出日時 | 2016-08-19 01:09:23 |
| 言語 | F# (F# 4.0) |
| 結果 |
AC
|
| 実行時間 | 337 ms / 5,000 ms |
| コード長 | 622 bytes |
| コンパイル時間 | 14,348 ms |
| コンパイル使用メモリ | 196,420 KB |
| 実行使用メモリ | 35,424 KB |
| 最終ジャッジ日時 | 2024-11-07 19:38:10 |
| 合計ジャッジ時間 | 10,959 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (343 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 System
type Sol() =
member this.Solve() =
let N = stdin.ReadLine() |> int
let S = Array.zeroCreate<int*string> N
for i = 0 to (N-1) do
S.[i] <- stdin.ReadLine().Split() |> (fun ss -> (int ss.[0]) , (ss.[1]) )
let f (n,s) =
let canType = 12 * n /1000
let toType = Seq.length s
if toType <= canType then toType else canType
let types = S |> Array.sumBy f
let tot = S |> Array.sumBy (fun (n,s) -> Seq.length s )
printfn "%d %d" types (tot - types)
let mySol = new Sol()
mySol.Solve()
kuuso1