結果

問題 No.647 明太子
ユーザー %20%20
提出日時 2018-02-09 22:46:54
言語 cLay
(20240104-1)
結果
AC  
実行時間 32 ms / 4,500 ms
コード長 238 bytes
コンパイル時間 1,946 ms
コンパイル使用メモリ 163,040 KB
実行使用メモリ 4,508 KB
最終ジャッジ日時 2023-09-18 23:55:33
合計ジャッジ時間 3,661 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 2 ms
4,384 KB
testcase_02 AC 1 ms
4,384 KB
testcase_03 AC 1 ms
4,508 KB
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 1 ms
4,384 KB
testcase_06 AC 2 ms
4,380 KB
testcase_07 AC 1 ms
4,380 KB
testcase_08 AC 2 ms
4,384 KB
testcase_09 AC 2 ms
4,384 KB
testcase_10 AC 3 ms
4,384 KB
testcase_11 AC 2 ms
4,380 KB
testcase_12 AC 2 ms
4,380 KB
testcase_13 AC 4 ms
4,380 KB
testcase_14 AC 25 ms
4,380 KB
testcase_15 AC 4 ms
4,384 KB
testcase_16 AC 2 ms
4,380 KB
testcase_17 AC 31 ms
4,380 KB
testcase_18 AC 32 ms
4,384 KB
testcase_19 AC 3 ms
4,380 KB
testcase_20 AC 4 ms
4,380 KB
testcase_21 AC 2 ms
4,380 KB
testcase_22 AC 22 ms
4,380 KB
testcase_23 AC 2 ms
4,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll N,A[1d4],B[1d4],M,X,Y,z[1d3];
{
	rd(N);
	rd(A[0..N-1],B[0..]);
	rd(M);
	rep(i,M){
		rd(X,Y);
		rep(j,N){
			X<=A[j]&&Y>=B[j]&&++z[i];
		}
	}
	X=max(z(M));
	if(X){
		rep(i,M){
			if(z[i]==X){
				wt(i+1);
			}
		}
	}else{
		wt(0);
	}
}
0