結果
| 問題 |
No.418 ミンミンゼミ
|
| コンテスト | |
| ユーザー |
naniwha12
|
| 提出日時 | 2019-01-28 23:34:39 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 594 bytes |
| コンパイル時間 | 534 ms |
| コンパイル使用メモリ | 55,736 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-06 16:49:53 |
| 合計ジャッジ時間 | 8,524 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 1 |
| other | RE * 25 |
ソースコード
#include <iostream>
#include <string>
#include <stdlib.h>
using namespace std;
int
main() {
// mi(-)*n
int j = 2;
int i = 0;
string s;
cin >> s;
cerr << "s[2] = " << s[2] << endl;
while (1) {
for (; s[j] == '-'; j++);
cerr << s[j] << endl;
j++;
i++;
if (s[j] == '\n') {
cout << i << endl;
return 0;
}
cerr << s[j] << endl;
j++;
}
return 0;
}
naniwha12