結果
| 問題 | No.436 ccw |
| コンテスト | |
| ユーザー |
🍡yurahuna
|
| 提出日時 | 2016-10-25 17:17:33 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 454 bytes |
| 記録 | |
| コンパイル時間 | 1,039 ms |
| コンパイル使用メモリ | 179,916 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-18 00:29:18 |
| 合計ジャッジ時間 | 2,278 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 24 |
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for (int i=0;i<(n);i++)
using namespace std;
int main() {
string s;
cin >> s;
int n = s.size();
assert(3 <= n && n <= 100000);
bool flag = true;
int i, j;
for (i = 0; i < n && s[i] == 'c'; i++) {
;
}
for (j = n-1; j >= 0 && s[j] == 'w'; j--) {
;
}
cerr << i << " " << j << endl;
assert(i - 1 == j);
assert(s.find("ccw") != string::npos);
}
🍡yurahuna