結果

問題 No.814 ジジ抜き
ユーザー Lepton_sLepton_s
提出日時 2018-02-21 13:21:16
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 634 bytes
コンパイル時間 1,526 ms
コンパイル使用メモリ 74,348 KB
実行使用メモリ 9,040 KB
最終ジャッジ日時 2023-10-13 10:33:41
合計ジャッジ時間 5,237 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

// I/O only
#include <cstdio>
#include <iostream>
#include <vector>
typedef long long ll;
#define REP(i,a,b) for(ll (i)=a;(i)<(ll)(b);++(i))
#define rep(i,n) REP(i,0,n)
using namespace std;

int main(){
	//std::ios::sync_with_stdio(false);std::cin.tie(0);
	int N;
	scanf("%d",&N);
	vector<ll> K(N), L(N);
	vector<int> D(N);
	rep(i, N) scanf("%lld%lld%d",&K[i],&L[i],&D[i]);
	ll lb = -1, ub = (ll)1e18+10;
	/*
	while(ub-lb>1){
		ll md = (lb+ub+1)/2;
		int x = 0;
		rep(i, N){
			ll t = md-L[i];
			if(t<0) continue;
			t >>= D[i];
			t = min(t, K[i]-1);
			if(t%2==0) x = !x;
		}
		(x==1?ub:lb)=md;
	}
	*/
	cout<<ub<<endl;
	return 0;
}
0