結果
問題 | No.1534 おなかがいたい |
ユーザー |
![]() |
提出日時 | 2024-12-12 13:16:04 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 200 ms / 2,000 ms |
コード長 | 207 bytes |
コンパイル時間 | 11,222 ms |
コンパイル使用メモリ | 221,520 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-12 13:16:19 |
合計ジャッジ時間 | 13,942 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 19 |
ソースコード
package main import . "fmt" import . "strings" func main() { var s string Scan(&s) if b, _, ok := Cut(s, "pain"); ok { if c := Count(b, "pon"); c >= 2 { Println(c-1) return } } Println(-1) }