結果

問題 No.2369 Some Products
ユーザー shobonvipshobonvip
提出日時 2023-06-30 20:02:55
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 713 bytes
コンパイル時間 7,117 ms
コンパイル使用メモリ 304,900 KB
実行使用メモリ 4,504 KB
最終ジャッジ日時 2023-09-21 14:56:26
合計ジャッジ時間 7,545 ms
ジャッジサーバーID
(参考情報)
judge13 / 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 -
権限があれば一括ダウンロードができます

ソースコード

diff #

/*
入力 validation。WA なら OK。
*/

#include "testlib.h"
#include<bits/stdc++.h>
using namespace std;

using ll = long long;
const ll Nmin = 1, Nmax = 5000;
const ll Pmin = -1e9, Pmax = 1e9;
const ll Qmin = 1, Qmax = 5000;

int main(){
	registerValidation();
	ll N = inf.readLong(Nmin,Nmax);
	inf.readEoln();
	
	for (int i=0; i<N; i++){
		ll P = inf.readLong(Pmin,Pmax);
		if (i == N-1) inf.readEoln();
		else inf.readSpace();
	}

	ll Q = inf.readLong(Qmin,Qmax);
	inf.readEoln();
	
	for (int i=0; i<Q; i++){
		ll A = inf.readLong(1, N);
		inf.readSpace();
		ll B = inf.readLong(1, N);
		inf.readSpace();
		assert(A < B);
		ll K = inf.readLong(1, B-A+1);
		inf.readEoln();
	}
	
	inf.readEof();
	return 0;
}
0