QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#420017#995. 桥World_CreaterTL 0ms0kbC++2013.9kb2024-05-24 13:55:162024-05-24 13:55:17

Judging History

你现在查看的是最新测评结果

  • [2024-05-24 13:55:17]
  • 评测
  • 测评结果:TL
  • 用时:0ms
  • 内存:0kb
  • [2024-05-24 13:55:16]
  • 提交

answer

__asm__(R"(	.file	"QOJ995.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv
#NO_APP
	.p2align 4
	.type	__tcf_0, @function
__tcf_0:
.LFB11705:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	2400096+G(%rip), %rbx
	leaq	-2400096(%rbx), %rbp
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rax, %rbx
.L3:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.L2
	movq	16(%rbx), %rsi
	subq	%rdi, %rsi
	call	_ZdlPvm@PLT
.L2:
	leaq	-24(%rbx), %rax
	cmpq	%rbp, %rbx
	jne	.L4
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE11705:
	.size	__tcf_0, .-__tcf_0
	.p2align 4
	.globl	_Z4dfs1i
	.type	_Z4dfs1i, @function
_Z4dfs1i:
.LFB9893:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movslq	%edi, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	dfn(%rip), %r12
	leaq	(%rdi,%rdi,2), %rdx
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	movl	idx(%rip), %eax
	addl	$1, %eax
	movl	%eax, idx(%rip)
	movl	%eax, (%r12,%rdi,4)
	leaq	G(%rip), %rax
	leaq	(%rax,%rdx,8), %rax
	movq	(%rax), %rbx
	movq	8(%rax), %rbp
	cmpq	%rbx, %rbp
	je	.L10
	leaq	tree(%rip), %r13
.L13:
	movslq	(%rbx), %rax
	movq	%rax, %rdi
	movl	(%r12,%rax,4), %eax
	testl	%eax, %eax
	je	.L16
.L12:
	addq	$8, %rbx
	cmpq	%rbx, %rbp
	jne	.L13
.L10:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	movslq	4(%rbx), %rax
	movb	$1, 0(%r13,%rax)
	call	_Z4dfs1i
	jmp	.L12
	.cfi_endproc
.LFE9893:
	.size	_Z4dfs1i, .-_Z4dfs1i
	.p2align 4
	.globl	_Z4dfs2ii
	.type	_Z4dfs2ii, @function
_Z4dfs2ii:
.LFB9904:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	dfn(%rip), %rdx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	low(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movslq	%edi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	(%r12,%r12,2), %rcx
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	(%rdx,%r12,4), %eax
	movl	%eax, 0(%r13,%r12,4)
	leaq	G(%rip), %rax
	leaq	(%rax,%rcx,8), %rax
	movq	(%rax), %rbx
	movq	8(%rax), %r15
	cmpq	%rbx, %r15
	je	.L17
	movl	%esi, %r14d
	leaq	tree(%rip), %rcx
.L23:
	movl	4(%rbx), %esi
	movslq	(%rbx), %rbp
	cmpl	%r14d, %esi
	je	.L20
	movslq	%esi, %rax
	cmpb	$0, (%rcx,%rax)
	jne	.L26
	movl	0(%r13,%r12,4), %esi
	movl	(%rdx,%rbp,4), %eax
	cmpl	%esi, %eax
	cmovg	%esi, %eax
	movl	%eax, 0(%r13,%r12,4)
.L20:
	addq	$8, %rbx
	cmpq	%rbx, %r15
	jne	.L23
.L17:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	movl	%ebp, %edi
	movq	%rax, 8(%rsp)
	call	_Z4dfs2ii
	movl	0(%r13,%rbp,4), %esi
	movl	0(%r13,%r12,4), %edi
	leaq	dfn(%rip), %rdx
	movl	(%rdx,%r12,4), %eax
	leaq	tree(%rip), %rcx
	cmpl	%edi, %esi
	cmovg	%edi, %esi
	movl	%esi, 0(%r13,%r12,4)
	cmpl	%eax, 0(%r13,%rbp,4)
	jle	.L20
	movq	8(%rsp), %rax
	leaq	vis(%rip), %rsi
	movb	$1, (%rsi,%rax)
	jmp	.L20
	.cfi_endproc
.LFE9904:
	.size	_Z4dfs2ii, .-_Z4dfs2ii
	.section	.rodata._ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJRiS5_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_.str1.1,"aMS",@progbits,1
.LC0:
	.string	"vector::_M_realloc_insert"
	.section	.text._ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJRiS5_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,"axG",@progbits,_ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJRiS5_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,comdat
	.align 2
	.p2align 4
	.weak	_ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJRiS5_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
	.type	_ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJRiS5_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_, @function
_ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJRiS5_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_:
.LFB11054:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdx, %rbx
	movq	%rcx, %rdx
	movabsq	$1152921504606846975, %rcx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	8(%rdi), %r8
	movq	(%rdi), %r12
	movq	%r8, %rax
	subq	%r12, %rax
	sarq	$3, %rax
	cmpq	%rcx, %rax
	je	.L49
	movq	%rsi, %rcx
	movq	%rdi, %r13
	movq	%rsi, %r14
	subq	%r12, %rcx
	cmpq	%r8, %r12
	je	.L50
	leaq	(%rax,%rax), %rsi
	cmpq	%rax, %rsi
	jb	.L41
	testq	%rsi, %rsi
	jne	.L51
	movd	(%rbx), %xmm0
	movd	(%rdx), %xmm1
	xorl	%ebp, %ebp
	xorl	%r15d, %r15d
	movl	$8, %ebx
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, (%rcx)
	cmpq	%r12, %r14
	je	.L39
.L34:
	movq	%r14, %rsi
	movq	%r15, %rax
	movq	%r12, %rdx
	subq	%r12, %rsi
	addq	%r15, %rsi
	.p2align 4,,10
	.p2align 3
.L36:
	movq	(%rdx), %rcx
	addq	$8, %rax
	addq	$8, %rdx
	movq	%rcx, -8(%rax)
	cmpq	%rsi, %rax
	jne	.L36
	leaq	8(%rax), %rbx
.L35:
	cmpq	%r8, %r14
	je	.L37
.L39:
	subq	%r14, %r8
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r8, %rdx
	movq	%r8, 8(%rsp)
	call	memcpy@PLT
	movq	8(%rsp), %r8
	addq	%r8, %rbx
.L37:
	testq	%r12, %r12
	je	.L38
	movq	16(%r13), %rsi
	movq	%r12, %rdi
	subq	%r12, %rsi
	call	_ZdlPvm@PLT
.L38:
	movq	%r15, 0(%r13)
	movq	%rbx, 8(%r13)
	movq	%rbp, 16(%r13)
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L41:
	.cfi_restore_state
	movabsq	$9223372036854775800, %rbp
.L32:
	movq	%rbp, %rdi
	movq	%rdx, 24(%rsp)
	movq	%r8, 16(%rsp)
	movq	%rcx, 8(%rsp)
	call	_Znwm@PLT
	movq	24(%rsp), %rdx
	movd	(%rbx), %xmm0
	movq	8(%rsp), %rcx
	addq	%rax, %rbp
	cmpq	%r12, %r14
	movq	16(%rsp), %r8
	movd	(%rdx), %xmm1
	movq	%rax, %r15
	leaq	8(%rax), %rbx
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, (%rax,%rcx)
	jne	.L34
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L50:
	addq	$1, %rax
	jc	.L41
	movabsq	$1152921504606846975, %rsi
	cmpq	%rsi, %rax
	cmovbe	%rax, %rsi
	movq	%rsi, %rbp
	salq	$3, %rbp
	jmp	.L32
.L51:
	movabsq	$1152921504606846975, %rax
	cmpq	%rax, %rsi
	cmova	%rax, %rsi
	leaq	0(,%rsi,8), %rbp
	jmp	.L32
.L49:
	leaq	.LC0(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
	.cfi_endproc
.LFE11054:
	.size	_ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJRiS5_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_, .-_ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJRiS5_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
	.text
	.p2align 4
	.globl	_Z3addiii
	.type	_Z3addiii, @function
_Z3addiii:
.LFB9891:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movslq	%edi, %rax
	leaq	G(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	(%rax,%rax,2), %rax
	movl	%edi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movl	%esi, %ebx
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movl	%edi, 12(%rsp)
	leaq	(%r12,%rax,8), %rdi
	movl	%esi, 8(%rsp)
	movq	8(%rdi), %rsi
	movl	%edx, 4(%rsp)
	cmpq	16(%rdi), %rsi
	je	.L53
	movd	%ebx, %xmm0
	movd	%edx, %xmm1
	addq	$8, %rsi
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, -8(%rsi)
	movq	%rsi, 8(%rdi)
.L54:
	movslq	%ebx, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%r12,%rax,8), %rdi
	movq	8(%rdi), %rsi
	cmpq	16(%rdi), %rsi
	je	.L55
	movd	4(%rsp), %xmm2
	movd	%ebp, %xmm0
	addq	$8, %rsi
	punpckldq	%xmm2, %xmm0
	movq	%xmm0, -8(%rsi)
	movq	%rsi, 8(%rdi)
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L53:
	.cfi_restore_state
	leaq	4(%rsp), %rcx
	leaq	8(%rsp), %rdx
	call	_ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJRiS5_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L55:
	leaq	4(%rsp), %rcx
	leaq	12(%rsp), %rdx
	call	_ZNSt6vectorISt4pairIiiESaIS1_EE17_M_realloc_insertIJRiS5_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE9891:
	.size	_Z3addiii, .-_Z3addiii
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	" "
.LC2:
	.string	"\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB9905:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	n(%rip), %rsi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	_ZSt3cin(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	call	_ZNSirsERi@PLT
	leaq	m(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSirsERi@PLT
	movl	m(%rip), %esi
	testl	%esi, %esi
	jle	.L59
	movl	$1, %ebx
	movq	%rsp, %r15
	leaq	4(%rsp), %r14
	leaq	a(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L60:
	movq	%r15, %rsi
	movq	%r12, %rdi
	call	_ZNSirsERi@PLT
	movq	%r14, %rsi
	movq	%rax, %rdi
	call	_ZNSirsERi@PLT
	movl	(%rsp), %edi
	movl	4(%rsp), %esi
	movl	%ebx, %edx
	movd	%esi, %xmm1
	movd	%edi, %xmm0
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, 0(%r13,%rbx,8)
	call	_Z3addiii
	movl	(%rsp), %esi
	movl	4(%rsp), %edi
	movl	%ebx, %edx
	addq	$1, %rbx
	call	_Z3addiii
	cmpl	%ebx, m(%rip)
	jge	.L60
	movl	n(%rip), %ecx
	testl	%ecx, %ecx
	jle	.L61
.L67:
	movl	$1, %r8d
	leaq	dfn(%rip), %r9
	jmp	.L63
	.p2align 4,,10
	.p2align 3
.L62:
	addq	$1, %r8
	cmpl	%r8d, n(%rip)
	jl	.L61
.L63:
	movl	(%r9,%r8,4), %edx
	testl	%edx, %edx
	jne	.L62
	movl	%r8d, %edi
	xorl	%esi, %esi
	call	_Z4dfs1i
	movl	%r8d, %edi
	addq	$1, %r8
	call	_Z4dfs2ii
	cmpl	%r8d, n(%rip)
	jge	.L63
.L61:
	movl	m(%rip), %eax
	testl	%eax, %eax
	jle	.L64
	leaq	a(%rip), %r13
	movl	$1, %ebx
	leaq	vis(%rip), %r15
	leaq	_ZSt4cout(%rip), %r14
	leaq	4(%r13), %r12
	jmp	.L66
	.p2align 4,,10
	.p2align 3
.L65:
	addq	$1, %rbx
	cmpl	%ebx, m(%rip)
	jl	.L64
.L66:
	cmpb	$0, (%r15,%rbx)
	je	.L65
	movl	0(%r13,%rbx,8), %esi
	movq	%r14, %rdi
	call	_ZNSolsEi@PLT
	movl	$1, %edx
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rdi
	movq	%rax, %rbp
	call	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT
	movl	(%r12,%rbx,8), %esi
	movq	%rbp, %rdi
	addq	$1, %rbx
	call	_ZNSolsEi@PLT
	movl	$1, %edx
	leaq	.LC2(%rip), %rsi
	movq	%rax, %rdi
	call	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT
	cmpl	%ebx, m(%rip)
	jge	.L66
.L64:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L74
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L59:
	.cfi_restore_state
	cmpl	$0, n(%rip)
	jg	.L67
	jmp	.L64
.L74:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE9905:
	.size	main, .-main
	.p2align 4
	.type	_GLOBAL__sub_I_a, @function
_GLOBAL__sub_I_a:
.LFB11727:
	.cfi_startproc
	endbr64
	leaq	G(%rip), %rax
	pxor	%xmm0, %xmm0
	leaq	2400120(%rax), %rdx
	.p2align 4,,10
	.p2align 3
.L76:
	movq	$0, 16(%rax)
	addq	$24, %rax
	movups	%xmm0, -24(%rax)
	cmpq	%rdx, %rax
	jne	.L76
	leaq	__dso_handle(%rip), %rdx
	xorl	%esi, %esi
	leaq	__tcf_0(%rip), %rdi
	jmp	__cxa_atexit@PLT
	.cfi_endproc
.LFE11727:
	.size	_GLOBAL__sub_I_a, .-_GLOBAL__sub_I_a
	.section	.init_array,"aw"
	.align 8
	.quad	_GLOBAL__sub_I_a
	.globl	idx
	.bss
	.align 4
	.type	idx, @object
	.size	idx, 4
idx:
	.zero	4
	.globl	low
	.align 32
	.type	low, @object
	.size	low, 400020
low:
	.zero	400020
	.globl	dfn
	.align 32
	.type	dfn, @object
	.size	dfn, 400020
dfn:
	.zero	400020
	.globl	tree
	.align 32
	.type	tree, @object
	.size	tree, 1000005
tree:
	.zero	1000005
	.globl	vis
	.align 32
	.type	vis, @object
	.size	vis, 1000005
vis:
	.zero	1000005
	.globl	G
	.align 32
	.type	G, @object
	.size	G, 2400120
G:
	.zero	2400120
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 4000040
a:
	.zero	4000040
	.hidden	__dso_handle
	.ident	"GCC: (Ubuntu 13.2.0-23ubuntu4) 13.2.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
)");

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Time Limit Exceeded

input:

24942 387166
12556 21443
22404 16376
11073 24296
1535 11968
23745 2818
5073 12731
22550 14761
24118 12008
22695 18979
15118 13639
2080 8721
692 22578
22581 15267
9278 4127
7457 21674
17693 23448
10949 23429
9700 6009
14140 5064
7742 15164
17336 1662
18903 9760
17645 19575
6540 11942
11 4937
15282 10...

output:


result: