結果

問題 No.423 ハムスター語初級(数詞)
コンテスト
ユーザー kuuso1
提出日時 2016-09-22 22:30:47
言語 F#
(F# 10.0 + ACL)
コンパイル:
fsharp_c _filename_
実行:
/usr/bin/dotnet_wrap
結果
AC  
実行時間 42 ms / 2,000 ms
+ 187µs
コード長 301 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 8,000 ms
コンパイル使用メモリ 213,196 KB
実行使用メモリ 32,148 KB
最終ジャッジ日時 2026-09-25 09:49:40
合計ジャッジ時間 8,908 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge4_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 9
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (244 ミリ秒)。
  main -> /home/judge/data/code/bin/Release/net10.0/main.dll
  main -> /home/judge/data/code/bin/Release/net10.0/publish/

ソースコード

diff #
raw source code

open System

let ri () = stdin.ReadLine() |> int
let ria () = stdin.ReadLine().Split() |> Array.map int

type Sol() =
    member this.Solve() = 
        let s = stdin.ReadLine()
        let t = if s = "ham" then "ham" else s + "ham"
        printfn "%s" t
        
let mySol = new Sol()
mySol.Solve()
0