結果

問題 No.495 (^^*) Easy
ユーザー 0214sh70214sh7
提出日時 2017-03-24 23:04:49
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 259 bytes
コンパイル時間 528 ms
コンパイル使用メモリ 24,712 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-20 02:54:18
合計ジャッジ時間 1,104 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <cstdio>
#define REP(i,n) for (int i=0;i<(n);i++)
int main(){
	char S[114514];
	scanf("%s",S);
	int i=0;
	int L=0,R=0;
	while(S[i]!='#'){
		if(S[i+1]=='^'){
			L++;
		}else if(S[i+1]=='*'){
			R++;
		}
		i+=5;
	}
	printf("%d\n%d\n",L,R);
	return 0;
}
0