text stringlengths 1 1.05M |
|---|
; A043669: Numbers n such that base 15 representation has exactly 2 runs.
; 15,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,65,66,67,68,69,70,71,72,73,74,75,76,77,78
add $0,14
mov $1,32
mul $1,$0
div $1,30
add $1,1
|
; A290764: Number of (non-null) connected induced subgraphs in the 2 X n king graph.
; 3,15,54,174,537,1629,4908,14748,44271,132843,398562,1195722,3587205,10761657,32285016,96855096,290565339,871696071,2615088270,7845264870,23535794673,70607384085,211822152324,635466457044,1906399371207,5719198113699,17157594341178
mo... |
;
; Decodeur de trame pulsadis EJP et préavis EJP
; (pic 12C508 ou 509)
; Alain Gibaud, 20-2-2001
;
; ========================================================
list r=hex,p=p12c508
include "p12c508.inc"
GP0 equ 0
GP1 equ 1
GP2 equ 2
GP3 equ 3
GP4 equ 4
GP5 equ 5
TO equ 4 ... |
IF !__CPU_INTEL__ & !__CPU_GBZ80__
SECTION code_graphics
PUBLIC drawbox
;
; $Id: drawbox.asm $
;
; ***********************************************************************
;
; Draw a box.
; Generic version
;
; Stefano Bodrato - March 2002
;
;
; IN: HL = (x,y)
; BC = (width,heigth... |
/******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... |
; A223278: Rolling icosahedron face footprints: number of n X 4 0..19 arrays starting with 0 where 0..19 label faces of an icosahedron and every array movement to a horizontal, diagonal or antidiagonal neighbor moves across an icosahedral edge.
; Submitted by Jamie Morken(s1.)
; 27,351,4995,72279,1048923,15229647,22114... |
; A070577: a(n) = n^4 mod 34.
; 0,1,16,13,18,13,4,21,16,33,4,21,30,1,30,33,18,17,18,33,30,1,30,21,4,33,16,21,4,13,18,13,16,1,0,1,16,13,18,13,4,21,16,33,4,21,30,1,30,33,18,17,18,33,30,1,30,21,4,33,16,21,4,13,18,13,16,1,0,1,16,13,18,13,4
pow $0,4
mod $0,34
|
;
; CPC Maths Routines
;
; August 2003 **_|warp6|_** <kbaccam /at/ free.fr>
;
; $Id: ddiv.asm,v 1.2 2007/07/21 21:28:22 dom Exp $
;
INCLUDE "#cpcfirm.def"
INCLUDE "#cpcfp.def"
XLIB ddiv
XDEF ddivc
LIB fsetup
LIB stkequ
XREF fa
.ddiv ; (fa+1)=(fa+1)*(sp+3)
call fsetup
call firm... |
SECTION rodata_font_fzx
PUBLIC _ff_ao_Zaibatsu
_ff_ao_Zaibatsu:
BINARY "font/fzx/fonts/ao/Zaibatsu/Zaibatsu.fzx"
|
# thread 1/2: concurrently incrementing heap[0] in a loop using CHECK barriers
STORE 0 # initialize heap[0] with 0
FENCE
CHECK 0
LOAD 0
ADDI 1
STORE 0
CHECK 1
JNZ 1
EXIT 1
|
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 3.6.0 #9615 (MINGW64)
;--------------------------------------------------------
.module tests
.optsdcc -mmcs51 --model-small
;--------------------------------------------------------
; Publi... |
; A070434: a(n) = n^2 mod 11.
; 0,1,4,9,5,3,3,5,9,4,1,0,1,4,9,5,3,3,5,9,4,1,0,1,4,9,5,3,3,5,9,4,1,0,1,4,9,5,3,3,5,9,4,1,0,1,4,9,5,3,3,5,9,4,1,0,1,4,9,5,3,3,5,9,4,1,0,1,4,9,5,3,3,5,9,4,1,0,1,4,9,5,3,3,5,9,4,1,0,1,4,9,5,3,3,5,9,4,1,0
pow $0,2
mod $0,11
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// TGUI - Texus' Graphical User Interface
// Copyright (C) 2012-2022 Bruno Van de Velde (vdv_b@tgui.eu)
//
// This software is provided 'as-is', without any express or implied warranty.
/... |
; A136767: n! never ends in this many 0's in base 4.
; 6,10,14,18,22,29,30,34,38,45,46,53,57,61,62,66,70,77,78,85,89,93,94,101,105,109,113,117,124,125,126,130,134,141,142,149,153,157,158,165,169,173,177,181,188,189,190,197,201,205,209,213,220,221,225,229,236
mov $2,$0
mul $0,2
add $0,1
seq $0,80468 ; a(n) = A080578(n)... |
1000c6d5: 55 push ebp
1000c6d6: 8b ec mov ebp,esp
1000c6d8: 83 ec 0c sub esp,0xc
1000c6db: a1 10 00 01 10 mov eax,ds:0x10010010
1000c6e0: 33 c5 xor eax,ebp
1000c6e2: 89 45 fc mov DWORD PTR [ebp-0x4],eax
1000c6e5: 6a 06 ... |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Rapture Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "sendcoinsdialog.h"
#include "ui_sendcoinsdialog.h"
#include... |
#ifndef STG_HPP
#define STG_HPP
#include <cstdint>
#include <QtGlobal>
#include <QString>
namespace Stg
{
class Stg
{
public:
Stg();
};
template<typename T>
bool encode(const char *data, uchar *container, int32_t size)
{
return T().T::Base::encode(data, container, size);
... |
; A176672: a(2*n) = 1 + 6*n, a(2*n+1) = A165367(n).
; 1,1,7,5,13,4,19,11,25,7,31,17,37,10,43,23,49,13,55,29,61,16,67,35,73,19,79,41,85,22,91,47,97,25,103,53,109,28,115,59,121,31,127,65,133,34,139,71,145,37,151,77,157,40,163,83,169,43,175,89,181,46,187,95,193
mov $3,$0
sub $0,1
gcd $0,4
mov $1,2
mov $2,3
mul $2,$3
div ... |
object_const_def ; object_event constants
const OLIVINEPORTPASSAGE_POKEFAN_M
OlivinePortPassage_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
OlivinePortPassagePokefanMScript:
jumptextfaceplayer OlivinePortPassagePokefanMText
OlivinePortPassagePokefanMText:
text "FAST SHIP S.S.AQUA"
line "sails to KANTO ... |
#include "proposals.h"
#include "bitcoinunits.h"
#include "ui_proposals.h"
#include "secdialog.h"
#include "ui_secdialog.h"
#include "walletmodel.h"
#include <QPainter>
#include <QTableWidget>
#include <QGridLayout>
#include <QUrl>
QString ToQstring(std::string s);
std::string FromQStringW(QString qs);
std::string G... |
.386
.model flat, stdcall
includelib msvcrt.lib
extern exit: proc
extern malloc: proc
extern memset: proc
includelib canvas.lib
extern BeginDrawing: proc
public start
.data
window_title db "Minion Rush 2D", 0
area_width equ 640
area_height equ 480
area dd 0
counter dd 0
counter_caramida dd 0
argument_1 equ 8
arg... |
; A084221: a(n+2) = 4*a(n), with a(0)=1, a(1)=3.
; 1,3,4,12,16,48,64,192,256,768,1024,3072,4096,12288,16384,49152,65536,196608,262144,786432,1048576,3145728,4194304,12582912,16777216,50331648,67108864,201326592,268435456,805306368,1073741824,3221225472,4294967296,12884901888,17179869184,51539607552,68719476736,20615843... |
#include "tests/vectorequals.h"
|
#include <torch/extension.h>
#include <vector>
// C++ interface
#define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
#define CHECK_CONTIGUOUS(x) TORCH_CHECK(x.is_contiguous(), #x " must be contiguous")
#define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
// CUDA forward declaratio... |
SECTION code_clib
SECTION code_fp_math48
PUBLIC asinh
EXTERN cm48_sccz80_asinh
defc asinh = cm48_sccz80_asinh
|
/*=========================================================================
Library: TubeTK
Copyright 2010 Kitware Inc. 28 Corporate Drive,
Clifton Park, NY, 12065, USA.
All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the Lic... |
; CALLER LINKAGE FOR FUNCTION POINTERS
PUBLIC vz_line
EXTERN vz_line_callee
EXTERN ASMDISP_VZ_LINE_CALLEE
.vz_line
pop af
pop bc
pop de
pop hl
ld d,e
ld e,l
pop hl
ex af,af
ld a,l
pop hl
ld h,a
push hl
push hl
push hl
push de
push bc
ex af,af
push af
jp vz... |
.386p
page 58,132
;******************************************************************************
title InitDeb - initialize debugger
;******************************************************************************
;
; (C) Copyright MICROSOFT Corp. 1986-1991
; (C) Copyright COMPAQ Computer Corp. 1986-1991
;
; Tit... |
; GLOBAL 7SEG CONSTANTS
N0 EQU 11000000B ; #DEFINE N0 11000000B
N1 EQU 11111001B
N2 EQU 10100100B
N3 EQU 10110000B
N4 EQU 10011001B
N5 EQU 10010010B
N6 EQU 10000010B
N7 EQU 11111000B
N8 EQU 10000000B
N9 EQU 10010000B
NA EQU 10001000B
NB EQU 10000011B
NC EQU 11000110B
ND EQU 10100001B
NE_ EQU 10000110B
N... |
.686P
.model flat, stdcall
ExitProcess PROTO STDCALL :DWORD
includelib kernel32.lib
includelib libcmt.lib
includelib legacy_stdio_definitions.lib
printf proto c :vararg
tuple struct
SDA dd 0
SDB dd 0
SDC dd 0
SF dd 0
tuple ends
.DATA
timeBuf db "Time: %u",0ah,0dh,0
numBuf db ... |
db 0 ; species ID placeholder
db 65, 65, 60, 110, 130, 95
; hp atk def spd sat sdf
db PSYCHIC, PSYCHIC ; type
db 45 ; catch rate
db 197 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F0 ; gender ratio
db 100 ; unknown 1
db 35 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/espeon/... |
; A182827: E.g.f. 1/sqrt(1+2x+4x^2).
; Submitted by Christian Krause
; 1,-1,-1,21,-111,-345,14895,-143955,-760095,49774095,-699437025,-5221460475,458621111025,-8457966542025,-81662774418225,8999266227076125,-205480756062957375,-2434383666448358625,322739182334471277375,-8786388514658364484875
mov $2,1
lpb $0
sub $0,... |
/*============================================================================
KWSys - Kitware System Library
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
This software i... |
###############################################################################
# Copyright 2018 Intel Corporation
# All Rights Reserved.
#
# If this software was obtained under the Intel Simplified Software License,
# the following terms apply:
#
# The source code, information and material ("Material") containe... |
// Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "low_precision_transformations/reshape_transformation.hpp"
#include <memory>
#include <tuple>
#include <vector>
#include <string>
#include <ie_core.hpp>
#include "common_test_utils/common_utils.hpp"
#include "functional_test_... |
//===-- MICmdCmdExec.cpp ----------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
;;
;; Copyright (c) 2009-2022, Intel Corporation
;;
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions are met:
;;
;; * Redistributions of source code must retain the above copyright notice,
;; this list of conditions and... |
/*
-- MAGMA (version 2.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date
@generated from sparse/control/magma_zmtranspose_cpu.cpp, normal z -> c, Sat Mar 27 20:32:44 2021
@author Hartwig Anzt
*/
#include <cstdlib>
#include "... |
#include <pge/rendering/octree/Octree.h>
#include <pge/scene/SceneObject.h>
#include <algorithm>
#include <assert.h>
using namespace pge;
Octree::Octree()
: _minNumNodeOccupants(3),
_maxNumNodeOccupants(6),
_maxLevels(40),
_oversizeMultiplier(1.0f)
{}
void Octree::operator=(const Octree &other) {
_minNumNodeOccu... |
;================================================================================
; Lamp Mantle & Light Cone Fix
;--------------------------------------------------------------------------------
; Output: 0 for darkness, 1 for lamp cone
;--------------------------------------------------------------------------------
L... |
INCLUDE "constants.asm"
INCLUDE "macros/wram.asm"
INCLUDE "vram.asm"
SECTION "Stack", WRAM0
wStackBottom::
ds $100 - 1
wStack::
wStackTop::
ds 1
SECTION "Audio RAM", WRAM0
wMusic::
; nonzero if playing
wMusicPlaying:: db ; c100
wChannels::
wChannel1:: channel_struct wChannel1 ; c101
wChannel2:: channel_str... |
.size 8000
.text@50
jp ltimaint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
xor a, a
ldff(0f), a
ldff(ff), a
ld a, fe
ldff(05), a
ldff(06), a
ld a, 04
ldff(ff), a
ld a, 04
ldff(07), a
ei
nop
halt
.text@1000
ltimaint:
nop
.text@11f3
ldff a, (05)
jp lprint_a
.text@7000
lprint_a:
push af
... |
/****************************************************************************//*
* Copyright (C) 2021 Marek M. Cel
*
* Creative Commons Legal Code
*
* CC0 1.0 Universal
*
* CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
* LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE... |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
_echo: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 57 push %edi
4: 56 push %es... |
; A075123: a(n) is the least positive integer > a(n-1) and a(n) is not 2*a(i)+a(j) for 1<=i<j<n.
; 1,2,3,6,9,14,17,22,25,30,33,38,41,46,49,54,57,62,65,70,73,78,81,86,89,94,97,102,105,110,113,118,121,126,129,134,137,142,145,150,153,158,161,166,169,174,177,182,185,190,193,198,201,206,209,214,217,222,225,230
mov $2,$0
mu... |
#include "test_state.h"
bool gameOver = false;
void test_state::Initialize(sf::RenderWindow* window)
{
manager = new EntityManager();
this->manager->Add("floor", "floor.png", false);
this->manager->Get("floor")->body->SetTransform(b2Vec2(0, -480), 0);
this->manager->Add("ball", "ship.png", true);
this->manager... |
; A326815: Dirichlet g.f.: zeta(s)^3 * Product_{p prime} (1 - 2 * p^(-s)).
; Submitted by Christian Krause
; 1,1,1,0,1,1,1,-2,0,1,1,0,1,1,1,-5,1,0,1,0,1,1,1,-2,0,1,-2,0,1,1,1,-9,1,1,1,0,1,1,1,-2,1,1,1,0,0,1,1,-5,0,0,1,0,1,-2,1,-2,1,1,1,0,1,1,0,-14,1,1,1,0,1,1,1,0,1,1,0,0,1,1,1,-5,-5,1,1,0,1,1,1,-2,1,0,1,0,1,1,1,-9,1,0,... |
; A034474: a(n) = 5^n + 1.
; 2,6,26,126,626,3126,15626,78126,390626,1953126,9765626,48828126,244140626,1220703126,6103515626,30517578126,152587890626,762939453126,3814697265626,19073486328126,95367431640626,476837158203126,2384185791015626
mov $1,5
pow $1,$0
add $1,1
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r8
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x108a2, %r14
nop
nop
nop
nop
and %r9, %r9
mov $0x6162636465666768, %rbx
movq %rbx, %xmm6
vmovups %ymm6, (%r14)
nop
nop
nop
nop
nop
add $24474, %rax
lea addresses_norma... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: PostScript printer driver
FILE: psbDriverInfo.asm
AUTHOR: Jim DeFrisco
REVISION HISTORY:
Name Date Description
---- ---- -------... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x16044, %rcx
nop
nop
nop
nop
nop
xor $47215, %r13
vmovups (%rcx), %ymm7
vextracti128 $0, %ymm7, %xmm7
vpextrq $0, %xmm7, %rsi
cmp $39835, %rbp
lea addresses_WT_ht+0xf2b7, %r13
nop
nop
no... |
/*
the vast starry sky,
bright for those who chase the light.
*/
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
#define mk make_pair
const int inf=(int)1e9;
const ll INF=(ll)5e18;
const int MOD=998244353;
int add(int x,int y){x+=y; return x>=MOD ? x-MOD : x;}
int sub(int x... |
#include "envoy/config/filter/network/thrift_proxy/v2alpha1/route.pb.h"
#include "envoy/config/filter/network/thrift_proxy/v2alpha1/route.pb.validate.h"
#include "extensions/filters/network/thrift_proxy/router/config.h"
#include "extensions/filters/network/thrift_proxy/router/router_impl.h"
#include "test/extensions/... |
; A110254: Square-indexed values of A110243.
; 1,2,5,7,17,21,25,43,65,55,81,111,97,157,169,121,257,273,217,343,321,253,441,507,385,501,625,487,673,813,481,931,1025,661,1089,841,865,1333,1369,937,1281,1641,1009,1807,1761,1081,2025,2163,1537
mul $0,2
trn $0,1
seq $0,268342 ; Number of edges in the unitary addition Cayle... |
Entity start
No options
Constants
0 S start
1 S tab
2 S Nome
3 S Alex
4 S Sexo
5 S M
6 S Idade
7 I 34
8 S Nome =
9 I 2
10 S io.writeln
11 S Sexo =
12 S Idade=
End
Valid context (always)
No properties
Def start
No parameters
Local variables
0 table tab
End
No results
ldconst ... |
platform__new_line_char EQU 13
;Print one character on screen
platform__print_char PROC
push hl
rst 10h
pop hl
ret
ENDP
IF DEFINED _screen
_screen__idx:
DW 16384
DW 16640
DW 16896
DW 17152
DW 17408
DW 17664
DW 17920
DW 18176
DW 16416
DW 16672
DW 16928
DW 17184
DW 17440... |
//
// server.cpp
// ~~~~~~~~~~
//
// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "server.hpp"
#include "request.hpp"
#i... |
section .data
msg: db "Hello World!", 0xA
mlen equ $-msg
section .bss
section .text
global main
main:
jmp Begin
mov rax, 0x10
xor rbx, rbx
Begin:
mov rax, 5
PrintHW:
push rax
mov rax, 1
mov rdi... |
; A016125: Expansion of 1/((1-x)*(1-12*x)).
; 1,13,157,1885,22621,271453,3257437,39089245,469070941,5628851293,67546215517,810554586205,9726655034461,116719860413533,1400638324962397,16807659899548765,201691918794585181,2420303025535022173,29043636306420266077,348523635677043192925,4182283628124518315101,50187403537494... |
;spl.asm
;Spinlock implementation for AMD64
;Bryan E. Topp <betopp@betopp.com> 2021
section .text
bits 64
align 16
global hal_spl_lock ;void hal_spl_lock(hal_spl_t *spl);
hal_spl_lock:
;Lock attempt - try to actually get the spinlock, using a locking atomic.
mov AX, 0x0100 ;AH = 1, AL = 0
lock cmpxchg [RDI]... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 4.0.3 #11868 (Linux)
;--------------------------------------------------------
; Processed by Z88DK
;--------------------------------------------------------
EXTERN __divschar
EXTERN __divsc... |
Name: zel_end2.asm
Type: file
Size: 147379
Last-Modified: '2016-05-13T04:25:37Z'
SHA-1: 741B67CECC39CE5A0AA60BDC85C318074B4D33B4
Description: null
|
/*****************************************************************************
Copyright 2004-2008 Steve Menard
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http:/... |
TITLE Endless Recursion (Endless.asm)
INCLUDE Irvine32.inc
.data
endlessStr BYTE "This recursion never stops",0
.code
main PROC
call Endless
exit
main ENDP
.code
Endless PROC
mov EDX,offset endlessStr
call WriteString
call Endless
ret ; never reaches this
Endless ENDP... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2013 The NovaCoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "txdb.h"
#include "miner.h"... |
//===- ArithmeticOps.cpp - MLIR Arithmetic dialect ops implementation -----===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
; A106567: a(0)=0, a(1)=4; for n>1, a(n) = 5*a(n-1) + 4*a(n-2).
; 0,4,20,116,660,3764,21460,122356,697620,3977524,22678100,129300596,737215380,4203279284,23965257940,136639406836,779058065940,4441847957044,25325472048980,144394752073076,823275648561300,4693957251098804,26762888849739220,152590273253091316,8700029216644... |
#include <iostream>
#include <cmath>
#include <cstdio>
using namespace std;
int Max=0,Min=0,t,l,n;
int main()
{
scanf("%d%d",&l,&n);
for(int i=1;i<=n;i++)
{
scanf("%d",&t);
Max=max(Max,max(t,l-t+1));
Min=max(Min,min(t,l-t+1));
}
printf("%d %d",Min,Max); ... |
; A229853: 384*n + 1.
; 1,385,769,1153,1537,1921,2305,2689,3073,3457,3841,4225,4609,4993,5377,5761,6145,6529,6913,7297,7681,8065,8449,8833,9217,9601,9985,10369,10753,11137,11521,11905,12289,12673,13057,13441,13825,14209,14593,14977,15361,15745,16129,16513,16897,17281,17665,18049,18433,18817,19201,19585,19969,20353,2073... |
; ----------------------------------------------------------------------------
; Altair, CIDLESA's 1981 arcade game remade for the ZX Spectrum and
; Amstrad CPC.
; ----------------------------------------------------------------------------
; Channels.
SND_CHAN0 .equ 0
SND_CHAN1 .equ 1
; Flag that can be added to the... |
add $sp, $zero, $imm, 1500 #set $sp to random place to start stack
add $sp, $sp, $imm, -4 #make place for 6 variables
sw $s0, $sp, $imm, 0 # save $s0
sw $s1, $sp, $imm, 1 # save $s1
sw $s2, $sp, $imm, 2 # save $s2
sw $a0, $sp, $imm, 3 #save $a0
add $s0, $zero , $imm, 1 #init $s0 =1 = pull_reg
add $s... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x2f58, %rsi
lea addresses_WT_ht+0x8198, %rdi
nop
nop
dec %rbx
mov $124, %rcx
rep movsw
nop
xor $17283, %rax
lea addresses_normal_ht+0x1cc08, %r15
nop
cmp %r10, %r10
movl ... |
SFX_Snare9_1_Ch1:
unknownnoise0x20 0, 130, 38
endchannel
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x102ed, %r10
clflush (%r10)
nop
nop
sub %rsi, %rsi
movb $0x61, (%r10)
nop
nop
nop
nop
nop
xor $55888, %rsi
lea addresses_UC_ht+0x1822e, %rsi
nop
nop
nop
nop
xor $40313, %rdx
... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/views/bubble/bubble_border.h"
#include <stddef.h>
#include <memory>
#include "base/macros.h"
#include "base/strings/stringprintf.h"
#i... |
// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/base/optional.h"
#include "src/builtins/builtins-utils-gen.h"
#include "src/builtins/builtins.h"
#include "src/codegen/code-stub-assembler... |
function tag[1] {
sigini #1
}
function d0inv[14] {
xor r0, r0, r0
movi r0.0l, #1
mov r29, r0
loop #256 (
mul128 r1, r28l, r29l
mul128 r2, r28u, r29l
add r1, r1, r2 << 128
mul128 r2, r28l, r29u
add r1, r1, r2 << 128
and r1, r1, r0
or r29, r29, r1
add r0, r0, r0
)
sub r29, r31, r29
ret
}
function selcxSub[25] {
ldrfp r1
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r8
push %r9
push %rax
push %rbp
push %rdi
lea addresses_D_ht+0x12ac8, %rdi
nop
and %r8, %r8
movl $0x61626364, (%rdi)
nop
nop
nop
nop
nop
cmp $51345, %r9
lea addresses_normal_ht+0x163a8, %rax
nop
add %r13, %r13
vmovups (%rax), %ymm7
vextracti128 $1, ... |
#include "RecoVertex/KinematicFitPrimitives/interface/KinematicTree.h"
KinematicTree::KinematicTree()
{
empt = true;
treeWalker = 0;
}
KinematicTree::~KinematicTree()
{
delete treeWalker;
}
bool KinematicTree::isEmpty() const
{return empt;}
bool KinematicTree::isConsistent() const
{
movePointerToTheTop();
... |
TITLE MVFNASC - Copyright (c) SLR Systems 1994
INCLUDE MACROS
INCLUDE IO_STRUC
PUBLIC MOVE_FN_TO_ASCIZ
.DATA
EXTERNDEF ASCIZ:BYTE
EXTERNDEF ASCIZ_LEN:DWORD
.CODE ROOT_TEXT
MOVE_FN_TO_ASCIZ PROC
;
;MOVE FILNAM [EAX] TO ASCIZ STRING
;
ASSUME EAX:PTR NFN_STRUCT
PUSHM EDI,ESI
MOV ECX,[... |
; A028950: Minimal norm of n-dimensional, strictly odd, unimodular lattice.
; 0,1,1,1,1,1,1,1,1,1,1,1,2,1,2,2,2,2,2,2,2,2,2,3,3,2,3,3,3,3,3,3,4,3
mov $2,$0
mov $4,$0
lpb $4
lpb $0
trn $2,4
trn $3,$0
mov $0,0
add $0,$2
sub $4,$3
mov $3,2
sub $4,2
lpe
add $1,1
trn $4,5
lpe
|
; WYZ player
;
; Hardware output routine for ZX
;
;
SECTION code_psg
PUBLIC asm_wyz_hardware_out
EXTERN asm_wyz_PSG_REG
EXTERN asm_wyz_PSG_REG_SEC
EXTERN asm_wyz_ENVOLVENTE_BACK
asm_wyz_hardware_out:
LD A,(asm_wyz_PSG_REG+13)
AND A ;ES CERO?
JR Z,NO_BACKUP_ENVOLVENTE
LD... |
;
; z88dk GFX library
;
; Render the "stencil".
; The dithered horizontal lines base their pattern on the Y coordinate
; and on an 'intensity' parameter (0..11).
; Basic concept by Rafael de Oliveira Jannone
;
; Machine code version by Stefano Bodrato, 22/4/2009
;
; stencil_render(unsigned char *stencil, unsigned char... |
; A280700: Binary weight of terms of A005187: a(n) = A000120(A005187(n)).
; 0,1,2,1,3,1,2,3,4,1,2,3,3,4,3,3,5,1,2,3,3,4,3,3,4,5,3,3,4,4,3,4,6,1,2,3,3,4,3,3,4,5,3,3,4,4,3,4,5,6,3,3,4,4,3,4,5,5,3,4,4,5,6,4,7,1,2,3,3,4,3,3,4,5,3,3,4,4,3,4,5,6,3,3,4,4,3,4,5,5,3,4,4,5,6,4,6,7,3,3
lpb $0
add $1,$0
div $0,2
lpe
seq $1,63... |
; int vsscanf(const char *s, const char *format, va_list arg)
SECTION code_stdio
PUBLIC vsscanf
EXTERN asm_vsscanf
vsscanf:
pop af
pop bc
pop de
pop hl
push hl
push de
push bc
push af
jp asm_vsscanf
|
#ifndef ANT_SIMULATOR_CORE_ORIENTATION_H
#define ANT_SIMULATOR_CORE_ORIENTATION_H
namespace core {
enum class Orientation {
OverflowCounterClockwise = -1,
North,
East,
South,
West,
OverflowClockwise
};
} // namespace core
#endif
|
;
; Copyright © 2016 Odzhan, Peter Ferrie. All Rights Reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are
; met:
;
; 1. Redistributions of source code must retain the above copyright
; notice, this list of condit... |
; A293270: a(n) = n^n*binomial(2*n-1, n).
; 1,1,12,270,8960,393750,21555072,1413199788,107961384960,9418192087590,923780000000000,100633991211229476,12055263261877075968,1575041416811693275900,222887966509090352332800,33962507149515380859375000,5543988061027763016035205120
sub $2,$0
mov $1,$2
pow $1,$0
bin $2,$0
mul $... |
<%
from pwnlib.shellcraft.aarch64.linux import syscall
%>
<%page args="path"/>
<%docstring>
Invokes the syscall rmdir. See 'man 2 rmdir' for more information.
Arguments:
path(char): path
</%docstring>
${syscall('SYS_rmdir', path)}
|
// a simple example with a tic tac toe game
asm SSL
import StandardLibrary
signature:
// DOMAINS
domain GoodAgent subsetof Agent
dynamic abstract domain Nonce
dynamic abstract domain PubKey
dynamic abstract domain PriKey
dynamic abstract domain SessionKey
dynamic abstract domain Message
dynamic abstract doma... |
#include <brainvisa-cmake_tutorial/brainvisa-cmake_tutorial.h>
#include <iostream>
#include <cstdlib>
using namespace std;
int main( int argc, const char *argv[] )
{
if ( argc != 4 ) {
cerr << "Usage: " << argv[0] << " day month year" << endl;
return EXIT_FAILURE;
}
brainvisacmake_tutorial::Date d( ato... |
section .text
global _start
_start:
; membuat file
mov eax, 8
mov ebx, nama_file
mov ecx, 0777 ; baca, tulis dan esekusi
int 0x80
mov [fd_out], eax
; tulis ke dalam file
mov edx, len ; jumlah byte
mov ecx, pesan ; pesan untuk ditulis
mov ebx, [fd_out... |
[bits 64]
xchg ax, ax
xchg ax, bx
xchg bx, ax
xchg eax, eax
xchg eax, ebx
xchg ebx, eax
xchg rax, rax
xchg rax, rbx
xchg rbx, rax
xchg al, al
xchg al, r8b
xchg r8b, al
xchg ax, ax
xchg ax, r8w
xchg r8w, ax
xchg ax, r9w
xchg r9w, ax
xchg eax, eax
xchg eax, r8d
xchg r8d, eax
xchg eax, r9d
xchg r9d, eax
xchg rax, rax
... |
; A021192: Decimal expansion of 1/188.
; Submitted by Jon Maiga
; 0,0,5,3,1,9,1,4,8,9,3,6,1,7,0,2,1,2,7,6,5,9,5,7,4,4,6,8,0,8,5,1,0,6,3,8,2,9,7,8,7,2,3,4,0,4,2,5,5,3,1,9,1,4,8,9,3,6,1,7,0,2,1,2,7,6,5,9,5,7,4,4,6,8,0,8,5,1,0,6,3,8,2,9,7,8,7,2,3,4,0,4,2,5,5,3,1,9,1
seq $0,83812 ; 4n-1 is the digit reversal of n-1.
div $... |
; ----------------------------------------------------------------
; Z88DK INTERFACE LIBRARY FOR NIRVANA+ ENGINE - by Einar Saukas
;
; See "nirvana+.h" for further details
; ----------------------------------------------------------------
; void NIRVANAP_drawTW_raw(unsigned int tile, unsigned int lin, unsigned int col... |
; ---------------------------------------------------------------------------
; Sprite mappings - water splash (LZ)
; ---------------------------------------------------------------------------
dc.w byte_145D2-Map_obj08
dc.w byte_145DD-Map_obj08
dc.w byte_145E8-Map_obj08
byte_145D2: dc.b 2
dc.b $F2, 4, 0... |
_sh: file format elf32-i386
Disassembly of section .text:
00000000 <runcmd>:
struct cmd *parsecmd(char*);
// Execute cmd. Never returns.
void
runcmd(struct cmd *cmd)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 ec 28 sub $0x28,%esp... |
#include "cbpch.h"
#include "OpenGLRendererAPI.h"
#include <glad/glad.h>
namespace CherryBell {
void OpenGLMessageCallback(unsigned source, unsigned type, unsigned id, unsigned severity, int length, const char* message, const void* userParam)
{
switch (severity)
{
case GL_DEBUG_SEVERITY_HIGH: CB_CORE_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.