結果
問題 | No.495 (^^*) Easy |
ユーザー | a2011404 |
提出日時 | 2017-03-30 15:43:36 |
言語 | C (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 299 bytes |
コンパイル時間 | 458 ms |
コンパイル使用メモリ | 28,244 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-09-21 08:42:14 |
合計ジャッジ時間 | 958 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,380 KB |
testcase_01 | AC | 0 ms
4,376 KB |
testcase_02 | AC | 0 ms
4,380 KB |
testcase_03 | AC | 0 ms
4,380 KB |
testcase_04 | AC | 0 ms
4,380 KB |
testcase_05 | AC | 1 ms
4,376 KB |
testcase_06 | AC | 1 ms
4,380 KB |
ソースコード
#include <stdio.h> #include <string.h> int main(int argc, const char * argv[]){ int i,j, L=0, R=0; char s[100000]; scanf("%s",&s); for(i=0;i<strlen(s);i++){ if(s[i]=='('){ if(s[i+1]=='^') L++; else if(s[i+1]=='*') R++; } } printf("%d %d\n",L,R); return 0; }