結果
| 問題 |
No.88 次はどっちだ
|
| コンテスト | |
| ユーザー |
kyuridenamida
|
| 提出日時 | 2014-12-07 23:47:12 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 308 bytes |
| コンパイル時間 | 1,309 ms |
| コンパイル使用メモリ | 160,552 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-11 17:49:14 |
| 合計ジャッジ時間 | 1,838 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 WA * 5 |
ソースコード
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main(){
string b[2] = {"oda","yukiko"};
string s;
cin >> s;
if( b[0] != s ) swap(b[0],b[1]);
string t,u;
while( cin >> t ) u += t;
cout << b[count(u.begin(),u.end(),'b') > count(u.begin(),u.end(),'w')] << endl;
}
kyuridenamida