結果
問題 | No.88 次はどっちだ |
ユーザー |
|
提出日時 | 2024-03-30 01:21:16 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 15 ms / 5,000 ms |
コード長 | 455 bytes |
コンパイル時間 | 1,522 ms |
コンパイル使用メモリ | 192,948 KB |
最終ジャッジ日時 | 2025-02-20 15:47:11 |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
外部呼び出し有り |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:26:11: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 26 | system("pause"); | ~~~~~~^~~~~~~~~
ソースコード
// コピーして使う! #include <bits/stdc++.h> using namespace std; using ll = long long; int main() { string s; cin>>s; string b[8]; for(int i=0;i!=8;i++){ cin>>b[i]; } ll cnt=0; for(ll i=0;i!=8;i++){ for(ll j=0;j!=8;j++){ cnt+=(b[i][j]!='.'); } } if(cnt%2 xor s=="oda"){ cout<<"oda"<<endl; } else{ cout<<"yukiko"<<endl; } system("pause"); }