結果
問題 | No.355 数当てゲーム(2) |
ユーザー |
![]() |
提出日時 | 2016-04-22 17:09:57 |
言語 | C++11 (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 408 bytes |
コンパイル時間 | 1,128 ms |
コンパイル使用メモリ | 157,264 KB |
実行使用メモリ | 25,916 KB |
平均クエリ数 | 40.00 |
最終ジャッジ日時 | 2024-07-16 09:58:15 |
合計ジャッジ時間 | 11,645 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 52 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int a[4]{}; for (int i = 0; i < 4; i++){ int mx = -1, r = 0; for (int j = 0; j <= 9; j++){ a[i] = j; for (int k = 0; k < 4; k++){ cout << a[k] << "\n "[k < 3]; } int x, y; cin >> x >> y; if (x == 4) return 0; if (mx < x){ mx = x; r = j; } } a[i] = r; } }