結果

問題 No.418 ミンミンゼミ
ユーザー naniwha12
提出日時 2019-01-28 23:20:22
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
RE  
実行時間 -
コード長 399 bytes
コンパイル時間 542 ms
コンパイル使用メモリ 54,312 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-06 10:19:55
合計ジャッジ時間 4,621 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 1
other RE * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <stdlib.h>

using namespace std;

int
main() {
        // mi(-)*n
        int j;
        int i = 0;
        string s;
        cin >> s;
        while (1) {
                for (j = 2; s[j] = '-'; j++);
                j++;
                i++;
                if (s[j] == '\n') cout << i << endl;
                j += 2;
        }

        return 0;
}
0