結果
問題 | No.495 (^^*) Easy |
ユーザー |
![]() |
提出日時 | 2019-07-21 10:32:48 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 263 bytes |
コンパイル時間 | 360 ms |
コンパイル使用メモリ | 55,380 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-11 18:22:54 |
合計ジャッジ時間 | 787 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; int l=0, r=0; for (int i=0; i<s.size(); i++) { if (s[i]=='*' && s[i+1]==')') l++; else if (s[i]=='*') r++; } printf("%d %d\n", l, r); return 0; }