結果
| 問題 |
No.305 鍵(2)
|
| コンテスト | |
| ユーザー |
zaichu
|
| 提出日時 | 2015-12-31 01:09:36 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 367 bytes |
| コンパイル時間 | 1,122 ms |
| コンパイル使用メモリ | 158,528 KB |
| 実行使用メモリ | 33,456 KB |
| 最終ジャッジ日時 | 2024-07-16 22:49:12 |
| 合計ジャッジ時間 | 8,262 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 12 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
string str;
int count = 0;
int tmp = 0;
long long int check = 0;
long long int plus = 1;
while(tmp != 10){
printf("%010lld\n",check);
cin >> tmp >> str;
if(count > tmp){
check -= plus;
plus *= 10;
}else if(count < tmp){
count = tmp;
plus *= 10;
}
check += plus;
}
return 0;
}
zaichu