結果
問題 | No.495 (^^*) Easy |
ユーザー |
![]() |
提出日時 | 2017-08-28 02:04:12 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 273 bytes |
コンパイル時間 | 516 ms |
コンパイル使用メモリ | 56,312 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-06 07:19:32 |
合計ジャッジ時間 | 987 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
#include <iostream> #include <string> using namespace std; string s; int main() { int left = 0; cin >> s; for (int i = 0; i <= s.length() - 1; i++) { if (s[i] == '^'&&s[i + 1] == '*')left++; } cout << left << " " << (s.length() - 1) / 5 - left << endl; return 0; }