結果

問題 No.495 (^^*) Easy
ユーザー test
提出日時 2020-09-09 04:40:36
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 4 ms / 2,000 ms
コード長 226 bytes
コンパイル時間 2,261 ms
コンパイル使用メモリ 193,700 KB
最終ジャッジ日時 2025-01-14 08:47:18
ジャッジサーバーID
(参考情報)
judge3 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int l = 0, r = 0;
  for (int i = 3; i < s.size(); i += 5) (s[i] == '*') ? l++ : r++;
  cout << to_string(l) << " " << to_string(r) << endl;
}
0