結果
問題 | No.495 (^^*) Easy |
ユーザー |
![]() |
提出日時 | 2018-01-15 19:42:48 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 302 bytes |
コンパイル時間 | 477 ms |
コンパイル使用メモリ | 57,372 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-24 03:29:03 |
合計ジャッジ時間 | 1,022 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
#include<iostream> #include<vector> #include<string> #include<cstdio> using namespace std; int main(){ string s; int R=0,L=0; cin >> s; for(int i=1;;i+=5){ if(s[i]=='\0') break; if(s[i]=='^') L++; else R++; } cout << L << ' ' << R; return 0; }