結果
| 問題 |
No.88 次はどっちだ
|
| コンテスト | |
| ユーザー |
prog470
|
| 提出日時 | 2016-09-11 02:09:24 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 714 bytes |
| コンパイル時間 | 873 ms |
| コンパイル使用メモリ | 70,604 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-17 00:14:33 |
| 合計ジャッジ時間 | 1,484 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include<stdio.h>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <algorithm>
#include <sstream>
#include <iostream>
#include <string>
#include <stdio.h>
using namespace std;
int main() {
string S,s1,s2, B[8];
cin >> S;
/*
if (S == "oda") {
s1 = "oda";
s2 = "yukiko";
}
else {
s1 = "yukiko";
s2 = "oda";
}
*/
for (int i = 0; i < 8; i++) cin >> B[i];
int cnt = 0;
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
if (B[i][j] != '.') cnt++;
}
}
/*
if (cnt % 2 == 0) cout << s1 << endl;
else cout << s2;
*/
if ((S == "oda") == (cnt % 2 == 0)) cout << "oda "<< endl;
else cout << "yukiko" << endl;
return 0;
}
prog470