結果
問題 | No.495 (^^*) Easy |
ユーザー |
|
提出日時 | 2017-08-26 05:28:30 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 401 bytes |
コンパイル時間 | 554 ms |
コンパイル使用メモリ | 64,140 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-15 17:15:08 |
合計ジャッジ時間 | 1,051 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
#include <iostream>#include <cmath>#include <string>#include <vector>#include <algorithm>using namespace std;typedef long long lint;#define MIN(a,b) ((a)<(b)?(a):(b))#define MAX(a,b) ((a)>(b)?(a):(b))int main(){int l = 0, r = 0;string S;cin >> S;for (int i = 0; S[i] != '#'; i += 5) {if (S[i + 3] == '*')l++;elser++;}cout << l << " " << r << endl;return 0;}