結果

問題 No.418 ミンミンゼミ
ユーザー naniwha12
提出日時 2019-01-28 23:24:41
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
TLE  
実行時間 -
コード長 400 bytes
コンパイル時間 668 ms
コンパイル使用メモリ 56,344 KB
実行使用メモリ 16,832 KB
最終ジャッジ日時 2024-10-06 11:27:43
合計ジャッジ時間 5,269 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample -- * 1
other TLE * 1 -- * 24
権限があれば一括ダウンロードができます

ソースコード

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