結果
問題 | No.418 ミンミンゼミ |
ユーザー |
![]() |
提出日時 | 2016-09-22 21:26:43 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 122 ms / 1,000 ms |
コード長 | 387 bytes |
コンパイル時間 | 3,467 ms |
コンパイル使用メモリ | 74,520 KB |
実行使用メモリ | 54,328 KB |
最終ジャッジ日時 | 2024-07-16 01:25:59 |
合計ジャッジ時間 | 6,817 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 25 |
ソースコード
import java.util.*; public class Exercise153 { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int count = 0; String str = sc.next(); str = str.replace("-", ""); String[] strarray = str.split("m"); for(String letter: strarray){ if(letter.equals("in")){ count++; } } System.out.println(count); } }