結果
問題 |
No.495 (^^*) Easy
|
ユーザー |
![]() |
提出日時 | 2020-03-30 21:44:10 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 8 ms / 2,000 ms |
コード長 | 287 bytes |
コンパイル時間 | 1,789 ms |
コンパイル使用メモリ | 166,864 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-23 04:08:37 |
合計ジャッジ時間 | 2,417 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int a = 0, b = 0; string s; cin >> s; for (int i = 0; i < s.length(); i++) { a += (s.substr(i, 2) == "^*"); b += (s.substr(i, 2) == "*^"); } cout << a << " " << b << endl; return 0; }