結果

問題 No.495 (^^*) Easy
ユーザー NoiriNoiri
提出日時 2017-12-05 15:01:50
言語 C++11
(gcc 11.4.0)
結果
TLE  
実行時間 -
コード長 407 bytes
コンパイル時間 382 ms
コンパイル使用メモリ 54,872 KB
実行使用メモリ 13,696 KB
最終ジャッジ日時 2024-05-06 10:33:37
合計ジャッジ時間 6,750 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
using namespace std;

int main(){
    string kao; cin >> kao;
    int i = 0;
    int migi = 0;
    int hidari = 0;
    while(kao[i] != '#'){
        if(kao[i] == '*'){
            if(kao[i+1] == '^') migi += 1;
        }
        if(kao[i] == '^'){
            if(kao[i+1] == '*') hidari += 1;
        }
    }
    cout << hidari << " " << migi << endl;

    return 0;
}
0