結果
| 問題 |
No.305 鍵(2)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-11-27 23:00:10 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 621 bytes |
| コンパイル時間 | 474 ms |
| コンパイル使用メモリ | 63,592 KB |
| 実行使用メモリ | 40,020 KB |
| 最終ジャッジ日時 | 2024-07-16 21:48:55 |
| 合計ジャッジ時間 | 7,339 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 12 |
ソースコード
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <math.h>
using namespace std;
typedef unsigned int uint;
typedef unsigned long ulong;
int main() {
int count = 0;
int number[10] = { 0 };
int answer = 0;
int targetmask = 1;
int responce1 = 0;
string responce2;
int lastnumber = 0;
while(true) {
printf("%010d\n", answer);
cin >> responce1 >> responce2;
if (responce2 == "unlocked") {
return 0;
}
else {
if (responce1 != lastnumber) {
targetmask *= 10;
lastnumber = responce1;
}
else {
// :(
}
answer += targetmask;
}
}
return 0;
}