結果

問題 No.495 (^^*) Easy
ユーザー knkknk
提出日時 2017-09-24 19:57:54
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 414 bytes
コンパイル時間 661 ms
コンパイル使用メモリ 76,728 KB
実行使用メモリ 6,940 KB
最終ジャッジ日時 2024-04-26 17:39:53
合計ジャッジ時間 1,166 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,812 KB
testcase_01 AC 2 ms
6,940 KB
testcase_02 AC 2 ms
6,940 KB
testcase_03 AC 2 ms
6,940 KB
testcase_04 AC 1 ms
6,940 KB
testcase_05 AC 2 ms
6,940 KB
testcase_06 AC 3 ms
6,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <iomanip>
#include <cmath>
#include <algorithm>

typedef long long ll;

int main(void)
{
  std::cin.tie(0);
  std::ios::sync_with_stdio(false);
  std::cout << std::fixed << std::setprecision(13);
  std::string s;
  std::cin >> s;
  ll r=0, l=0;
  for (ll i = 1; i < s.size(); i+=5) {
    if (s[i] == '*') r++;
    else l++;
  }
  std::cout << l << " " << r << std::endl;
  return 0;
}
0