結果
問題 | No.495 (^^*) Easy |
ユーザー |
![]() |
提出日時 | 2017-03-24 22:28:15 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 220 bytes |
コンパイル時間 | 453 ms |
コンパイル使用メモリ | 55,064 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-06 02:56:48 |
合計ジャッジ時間 | 846 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
#include<iostream> using namespace std; char ca[100007]; int main(){ int i,j,k; int s[2]={0}; cin>>ca; for(i=0;ca[i]!='#';i+=5){ if(ca[i+1]=='^')s[0]++; else s[1]++; } cout<<s[0]<<" "<<s[1]<<endl; return 0; }