結果
問題 |
No.495 (^^*) Easy
|
ユーザー |
![]() |
提出日時 | 2019-02-18 20:50:11 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 273 bytes |
コンパイル時間 | 540 ms |
コンパイル使用メモリ | 57,316 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-08 03:46:27 |
合計ジャッジ時間 | 1,302 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
#include<iostream> #include<string> using namespace std; int main(){ string S; cin>>S; int a=0; int b=0; for(int i=1;i<S.length();i+=5){ if(S[i]=='^'){ a++; }else{ b++; } } cout<<a<<' '<<b<<endl; }