結果
| 問題 | No.436 ccw |
| コンテスト | |
| ユーザー |
Kura
|
| 提出日時 | 2019-07-28 11:25:27 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 212 bytes |
| 記録 | |
| コンパイル時間 | 1,142 ms |
| コンパイル使用メモリ | 174,472 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-03-23 22:35:08 |
| 合計ジャッジ時間 | 1,930 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 24 |
ソースコード
#include"bits/stdc++.h"
using namespace std;
int main() {
string s; cin >> s; int c; int l = s.length();
for (int i = 0; i < l; i++) if (s[i] = 'w') { c = i; break; }
cout << min(c - 1, l - c) << endl;
}
Kura