結果

問題 No.418 ミンミンゼミ
ユーザー poopi_pokepoopi_poke
提出日時 2016-11-25 03:56:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 1,000 ms
コード長 358 bytes
コンパイル時間 2,398 ms
コンパイル使用メモリ 72,356 KB
実行使用メモリ 56,220 KB
最終ジャッジ日時 2023-09-23 01:42:13
合計ジャッジ時間 6,906 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,948 KB
testcase_01 AC 119 ms
55,528 KB
testcase_02 AC 120 ms
55,984 KB
testcase_03 AC 120 ms
55,796 KB
testcase_04 AC 117 ms
55,916 KB
testcase_05 AC 121 ms
55,496 KB
testcase_06 AC 121 ms
55,876 KB
testcase_07 AC 122 ms
55,864 KB
testcase_08 AC 120 ms
55,820 KB
testcase_09 AC 122 ms
55,748 KB
testcase_10 AC 119 ms
55,928 KB
testcase_11 AC 122 ms
55,984 KB
testcase_12 AC 122 ms
55,856 KB
testcase_13 AC 123 ms
55,924 KB
testcase_14 AC 122 ms
56,020 KB
testcase_15 AC 121 ms
56,052 KB
testcase_16 AC 121 ms
55,588 KB
testcase_17 AC 121 ms
56,036 KB
testcase_18 AC 120 ms
55,940 KB
testcase_19 AC 119 ms
55,824 KB
testcase_20 AC 121 ms
55,512 KB
testcase_21 AC 119 ms
56,096 KB
testcase_22 AC 119 ms
56,220 KB
testcase_23 AC 118 ms
55,672 KB
testcase_24 AC 118 ms
56,084 KB
testcase_25 AC 120 ms
56,212 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner; 
import java.lang.String; 
import java.util.regex.*;
class A{ 
public static void main(String args[])
{ 
int count=-1; 
Scanner sc = new Scanner(System.in); 
String s=sc.next(); 
Pattern p = Pattern.compile("mi-*n"); 
Matcher m = p.matcher(s);
boolean a=true; 
while(a){ 
 a = m.find(); 
count++;  
} 
System.out.print(count); 
} 
}
0