結果
| 問題 | No.88 次はどっちだ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-12-21 20:03:26 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 260 bytes |
| 記録 | |
| コンパイル時間 | 503 ms |
| コンパイル使用メモリ | 66,732 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-14 12:32:18 |
| 合計ジャッジ時間 | 1,103 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
コンパイルメッセージ
main.cpp:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
3 | main(){
| ^~~~
ソースコード
#include<iostream>
using namespace std;
main(){
string s,t,b[8];
cin>>s;if(s=="oda")t="yukiko";else t="oda";
for(int i=0;i<8;i++)cin>>b[i];
int c=0;
for(int i=0;i<8;i++)for(int j=0;j<8;j++)if(b[i][j]!='.')c++;
if(c&1)cout<<t<<endl;
else cout<<s<<endl;
}