結果
| 問題 |
No.304 鍵(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-12-18 12:28:50 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 50 ms / 2,000 ms |
| コード長 | 410 bytes |
| コンパイル時間 | 493 ms |
| コンパイル使用メモリ | 61,484 KB |
| 実行使用メモリ | 25,092 KB |
| 平均クエリ数 | 461.00 |
| 最終ジャッジ日時 | 2024-07-17 02:05:33 |
| 合計ジャッジ時間 | 1,185 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
ソースコード
#include <stdio.h>
#include <stdlib.h>
#include <iomanip>
#include <iostream>
#include <string>
using namespace std;
int used[999] = {};
string str;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.fill('0');
srand(0);
while (1) {
int i = 0;
while (used[i]) i = rand() % 1000;
used[i] = 1;
cout << setw(3) << i << endl;
cin >> str;
if (str[0] == 'u') return 0;
}
}