結果
| 問題 |
No.436 ccw
|
| コンテスト | |
| ユーザー |
🍡yurahuna
|
| 提出日時 | 2016-10-25 17:17:33 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 454 bytes |
| コンパイル時間 | 1,567 ms |
| コンパイル使用メモリ | 166,100 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-24 03:34:58 |
| 合計ジャッジ時間 | 2,502 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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