結果
| 問題 |
No.495 (^^*) Easy
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-11-02 08:21:47 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 268 bytes |
| コンパイル時間 | 1,678 ms |
| コンパイル使用メモリ | 165,132 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-22 12:42:30 |
| 合計ジャッジ時間 | 1,966 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 6 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main() {
int l=0, r=0;
string s;
cin >> s;
for (int i = 1; i < s[i]; i += 5) {
if (s[i] == '*') {
l++;
} else {
r++;
}
}
printf("%d %d", l, r);
}