結果

問題 No.305 鍵(2)
ユーザー zaichuzaichu
提出日時 2015-12-31 01:09:36
言語 C++11
(gcc 11.4.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 367 bytes
コンパイル時間 1,732 ms
コンパイル使用メモリ 142,940 KB
実行使用メモリ 38,772 KB
最終ジャッジ日時 2023-09-23 23:03:49
合計ジャッジ時間 8,293 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0