結果
問題 | No.88 次はどっちだ |
ユーザー |
|
提出日時 | 2016-06-26 11:40:40 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
CE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 929 bytes |
コンパイル時間 | 1,405 ms |
コンパイル使用メモリ | 158,140 KB |
最終ジャッジ日時 | 2024-11-14 19:45:34 |
合計ジャッジ時間 | 1,770 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.cpp: In function 'int main()': main.cpp:22:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 22 | gets(buff); | ^~~~ | getw
ソースコード
#include<bits/stdc++.h>using namespace std;typedef long long int ll;#define debugv(v) printf("L%d %s => ",__LINE__,#v);for(auto e:v){cout<<e<<" ";}cout<<endl;#define debugm(m) printf("L%d %s is..\n",__LINE__,#m);for(auto v:m){for(auto e:v){cout<<e<<" ";}cout<<endl;}#define debugaa(m,w,h) printf("L%d %s is..\n",__LINE__,#m);for(int y=0;y<(h);y++){for(int x=0;x<(w);x++){cout<<(m)[x][y]<<" ";}cout<<endl;}#define ALL(v) (v).begin(),(v).end()#define BIGINT 0x7FFFFFFFtemplate<typename T1,typename T2>ostream& operator <<(ostream &o,const pair<T1,T2> p){o<<"("<<p.first<<":"<<p.second<<")";return o;}int main(){int i,j,k,l;int m,n;char buff[256];gets(buff);k=0;while (gets(buff+1)){for (i=1;i<=8;i++){k+=buff[i]=='.';}}if (buff[0]=='y' && (k&1)){puts("oda");}else{puts("yukiko");}return 0;}