結果

問題 No.495 (^^*) Easy
ユーザー ndifix
提出日時 2017-03-24 22:29:18
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 241 bytes
コンパイル時間 396 ms
コンパイル使用メモリ 55,652 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-06 02:57:56
合計ジャッジ時間 724 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main(){
	string s;
	cin >> s;

	int r=0, l=0;
	for(int i=0; i<s.size()-1; i+=5){
		if(s[i+1]=='^') l+=1;
		if(s[i+1]=='*') r+=1;
	}

	cout << l << " " << r << endl;
	return 0;
}
0