結果
問題 | No.341 沈黙の期間 |
ユーザー | iwot |
提出日時 | 2020-06-21 03:44:57 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 78 ms / 5,000 ms |
コード長 | 219 bytes |
コンパイル時間 | 3,468 ms |
コンパイル使用メモリ | 153,420 KB |
実行使用メモリ | 24,868 KB |
最終ジャッジ日時 | 2023-09-16 18:03:22 |
合計ジャッジ時間 | 5,834 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 75 ms
22,772 KB |
testcase_01 | AC | 74 ms
22,680 KB |
testcase_02 | AC | 75 ms
22,824 KB |
testcase_03 | AC | 76 ms
24,868 KB |
testcase_04 | AC | 77 ms
24,796 KB |
testcase_05 | AC | 77 ms
22,740 KB |
testcase_06 | AC | 77 ms
24,828 KB |
testcase_07 | AC | 77 ms
22,800 KB |
testcase_08 | AC | 78 ms
22,772 KB |
testcase_09 | AC | 74 ms
22,860 KB |
testcase_10 | AC | 75 ms
22,744 KB |
testcase_11 | AC | 75 ms
22,836 KB |
testcase_12 | AC | 76 ms
24,860 KB |
testcase_13 | AC | 74 ms
22,700 KB |
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0 Copyright (c) Microsoft Corporation. All Rights Reserved.
ソースコード
let S = stdin.ReadLine().Trim() let mutable t = 0 let mutable max = 0 for i in 0 .. S.Length-1 do if S.[i] = '…' then t <- t + 1 if max < t then max <- t else t <- 0 printfn "%d" max