結果
問題 |
No.203 ゴールデン・ウィーク(1)
|
ユーザー |
|
提出日時 | 2025-09-12 00:13:47 |
言語 | Standard ML (MLton 20210117) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 698 bytes |
コンパイル時間 | 6,910 ms |
コンパイル使用メモリ | 689,412 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-09-12 00:13:55 |
合計ジャッジ時間 | 8,349 ms |
ジャッジサーバーID (参考情報) |
judge / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
fun readStr () = let fun scan reader stream = SOME (StringCvt.splitl (not o Char.isSpace) reader (StringCvt.skipWS reader stream)) in valOf (TextIO.scanStream scan TextIO.stdIn) end fun find_ans s = let fun find_ans_aux [] current max = Int.max (current, max) | find_ans_aux (h::t) current max = if h = #"o" then find_ans_aux t (current + 1) max else find_ans_aux t 0 (Int.max (current, max)) in find_ans_aux (String.explode s) 0 0 end val () = let val s1 = readStr () val s2 = readStr () val ans = find_ans (s1 ^ s2) in print (Int.toString ans ^ "\n") end