結果

問題 No.495 (^^*) Easy
ユーザー 0214sh70214sh7
提出日時 2017-03-24 23:02:52
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 259 bytes
コンパイル時間 136 ms
コンパイル使用メモリ 30,652 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-20 02:49:18
合計ジャッジ時間 644 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