text
stringlengths
1
1.05M
/* * Copyright Andrey Semashev 2007 - 2014. * 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 <cstddef> #include <iostream> #include <boost/log/expressions.hpp> #include <boost/l...
; $Id: bzero.asm 69111 2017-10-17 14:26:02Z vboxsync $ ;; @file ; IPRT - No-CRT bzero - AMD64 & X86. ; ; ; Copyright (C) 2006-2017 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; ; you can redistribute it and/o...
; A020069: Integer part of Gamma(n+1/9)/Gamma(1/9). ; Submitted by Jon Maiga ; 1,0,0,0,0,3,17,104,740,6005,54717,553253,6147263,74450193,976124760,13774204958,208143541601,3353423725801,57380805974819,1039230152655057,19860842917407765,399423618672311729,8432276394193247633,186447000271606253219,4308997339610455629965,...
_ln: 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: 83 e4 f0 and $0xfffffff0,%esp 6: 83 ec 10 ...
[CPU 486] [BITS 32] MOV ECX, msg MOV EDX, 1 putloop: MOV AL, [CS:ECX] CMP AL, 0 JE fin INT 0x40 ADD ECX, 1 JMP putloop fin: RETF msg: DB "hello", 0
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r14 push %r15 push %r9 push %rcx push %rdi push %rsi lea addresses_A_ht+0x1b5ee, %r10 sub %rcx, %rcx movb $0x61, (%r10) nop nop and %r9, %r9 lea addresses_normal_ht+0x1a08c, %rsi lea addresses_normal_ht+0x17fa8, %rdi nop nop nop nop dec %r15 mov $46...
class Solution { public: int minimumRounds(vector<int>& tasks) { int ans = 0; unordered_map<int, int> count; for (const auto& t : tasks) ++count[t]; // freq = 1 -> impossible // freq = 2 -> needs 1 round // freq = 3 -> needs 1 round // freq = 3k -> needs ...
; A109446: Binomial coefficients C(n,k) with n-k even, read by rows. ; 1,1,1,1,3,1,1,6,1,5,10,1,1,15,15,1,7,35,21,1,1,28,70,28,1,9,84,126,36,1,1,45,210,210,45,1,11,165,462,330,55,1,1,66,495,924,495,66,1,13,286,1287,1716,715,78,1,1,91,1001,3003,3003,1001,91,1,15,455,3003,6435,5005,1365,105,1,1,120,1820,8008,12870,8008,1...
frame 0, 08 frame 4, 06 frame 5, 04 frame 6, 04 frame 5, 04 frame 4, 06 endanim
# @created by Le Nhut Nam # @ vn.hcmus.fit.sv18120061.computerarchitecture.mips # Nhap tu ban phim 2 so nguyen, tinh tong, hieu, tich, thuong cua 2 so .data tb1: .asciiz "Nhap a: " tb2: .asciiz "Nhap b: " tb3: .asciiz "Tong la: " tb4: .asciiz "Hieu la: " tb5: .asciiz "Tich la: " tb6: .asciiz "Thuong la: " tb7: ....
;Testname=test; Arguments=-fbin -ofpu.bin; Files=stdout stderr fpu.bin ; relaxed encodings for FPU instructions, which NASM should support ; ----------------------------------------------------------------- %define void %define reg_fpu0 st0 %define reg_fpu st1 ; no operands instead of one operand: ; F(U)COM(P), F...
nyanTimeString: db "You've Nyaned for 00000.0 seconds!" nyanTimeStringLen: equ $-nyanTimeString nyanTimeVideoStart: equ 3840 nyanTimeBin dw 0 countNyan: ; Set the extra segment to video memory push es push 0xb800 pop es mov di, 0 inc word [nyanTimeBin] mov bx, nyanTimeStringLen*2 .loop: sub bx, 2 ...
;File: ftoa.asm ; ======================================================================== ; PIC Floating point library ; ======================================================================== ; Copyright (C) 1991,1997,1998,1999,2000,2001,2002,2003 Mike Gore ; All rights reserved. ; ; Redistribution and use in sour...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: cbodySelect.asm AUTHOR: Chris Boyke METHODS: Name Description ---- ----------- FUNCTIONS: Scope Name Description ----- ---- -----...
;ZXVGS specific functions ;020128 (C) created by Yarek SECTION code_clib PUBLIC bnkfree PUBLIC _bnkfree ;int bnkfree() ;returns number of free memory banks .bnkfree ._bnkfree RST 8 DEFB $BF LD L,A LD H,0 RET
INCLUDE "data/map_songs.asm" INCLUDE "data/map_header_pointers.asm" INCLUDE "data/map_header_banks.asm" INCLUDE "engine/pikachu_follow.asm" INCLUDE "engine/pikachu_status.asm" INCLUDE "engine/pikachu_emotions.asm" INCLUDE "engine/pikachu_movement.asm" INCLUDE "engine/pikachu_pic_animation.asm" Func_fe66e: ;how useless...
#include<iostream> #include<vector> class Person { public: Person(int b, int d): birth(b), death(d) {} int birth, death; }; /** * Time complexity = O(RP), R-range of years, P-num of people */ int max_alive_year_bf(const std::vector<Person>& people, const int min, const int max) { int max_al...
; A079813: n 0's followed by n 1's. ; 0,1,0,0,1,1,0,0,0,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0 lpb $0 add $1,3 add $2,1 trn $0,$2 trn $1,$0 sub $0,$2 trn $0,1 lpe t...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR> ; This program and the accompanying materials ; are licensed and made available under the terms and conditions of the BSD License ; which accompanies this distribution...
; A030528: Triangle read by rows: a(n,k) = binomial(k,n-k). ; Coded manually 2021-03-01 by Simon Strandgaard, https://github.com/neoneye ; 1,1,1,0,2,1,0,1,3,1,0,0,3,4,1,0,0,1,6,5,1,0,0,0,4,10,6,1,0,0,0,1,10,15,7,1,0,0,0,0,5,20,21,8,1,0,0,0,0,1,15,35,28,9,1,0,0,0,0,0,6,35,56,36,10,1,0,0,0,0,0,1,21,70,84,45,11,1,0,0,0,0,...
// Copyright 2002 Google Inc. /* * 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 * * Unless required by applicable law or agreed to in ...
; A001871: Expansion of 1/(1 - 3*x + x^2)^2. ; 1,6,25,90,300,954,2939,8850,26195,76500,221016,632916,1799125,5082270,14279725,39935214,111228804,308681550,853904015,2355364650,6480104231,17786356776,48715278000,133167004200,363372003625,989900286774,2692596427969,7313740430850,19839911594460,53754003108450,145474837268...
// =-=-=-=-=-=-=- // irods includes #include "msParam.h" #include "reGlobalsExtern.hpp" #include "generalAdmin.h" #include "physPath.hpp" #include "reIn2p3SysRule.hpp" #include "miscServerFunct.hpp" // =-=-=-=-=-=-=- #include "irods_resource_plugin.hpp" #include "irods_file_object.hpp" #include "irods_physical_object....
; A215095: a(0)=0, a(1)=1, a(n) = least k>a(n-1) such that k+a(n-2) is a Jacobsthal number. ; 0,1,3,4,8,17,35,68,136,273,547,1092,2184,4369,8739,17476,34952,69905,139811,279620,559240,1118481,2236963,4473924,8947848,17895697,35791395,71582788,143165576,286331153,572662307,1145324612,2290649224,4581298449,9162596899 mo...
; ; Z88dk Generic Floating Point Math Library ; ; Push FA onto the stack ; ; $Id: pushfa.asm,v 1.3 2016-06-21 21:16:49 dom Exp $: SECTION code_fp PUBLIC pushfa PUBLIC pushf2 EXTERN fa .pushfa ex de,hl .pushf2 ld hl,(fa) ex (sp),hl push hl ld hl,(f...
bits 16 jmp bootloader message db 'Hello World',0 printMessage: push ax .loop: lodsb or al,al jz .quitLoop mov ah,0x0e int 0x10 jmp .loop .quitLoop: pop ax ret bootloader: cli mov ax,0x07c0 mov ds,ax mov gs,ax mov fs,ax...
; A005803: Second-order Eulerian numbers: a(n) = 2^n - 2*n. ; 1,0,0,2,8,22,52,114,240,494,1004,2026,4072,8166,16356,32738,65504,131038,262108,524250,1048536,2097110,4194260,8388562,16777168,33554382,67108812,134217674,268435400,536870854,1073741764,2147483586,4294967232,8589934526,17179869116,34359738298,68719476664,13...
/////////////////////////////////////////////////////////////////////////////// // Copyright Christopher Kormanyos 2007 - 2013. // Copyright Joel Winarske 2019. // 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_...
-- HUMAN RESOURCE MACHINE PROGRAM -- JUMP c a: COPYTO 0 SUB 0 SUB 0 b: OUTBOX c: INBOX JUMPN a JUMP b
; Top-hole Golf ; Copyright 2020-2021 Matthew Clarke !to "birdie.o",cbm !source "vic_ii.asm" !source "zeropage.asm" !source "screen_codes.asm" !source "sprite_data.asm" !source "mymacros.asm" !source "kb_matrix_codes.asm" *= $059c !bin "loader_main.bin" ; NOTE: 'end_of_loader' is initial entr...
; A099868: a(n) = 5*a(n-1) - a(n-2), a(0) = 3, a(1) = 25. ; 3,25,122,585,2803,13430,64347,308305,1477178,7077585,33910747,162476150,778470003,3729873865,17870899322,85624622745,410252214403,1965636449270,9417930031947,45124013710465,216202138520378,1035886678891425,4963231255936747 mov $2,4 lpb $0,1 sub $0,1 add $...
; A007800: From a problem in AI planning: a(n) = 4+a(n-1)+a(n-2)+a(n-3)+a(n-4)-a(n-5)-a(n-6)-a(n-7), n>7. ; 1,2,4,8,16,31,59,111,207,384,710,1310,2414,4445,8181,15053,27693,50942,93704,172356,317020,583099,1072495,1972635,3628251,6673404,12274314,22575994,41523738,76374073,140473833,258371673,475219609,874065146,160765...
; A064322: Triply triangular numbers. ; 0,1,21,231,1540,7260,26796,82621,222111,536130,1186570,2445366,4747821,8763391,15487395,26357430,43398586,69401871,108140571,164629585,245433090,359026206,516216646,730632651,1019283825,1403201800,1908167976,2565535896,3413156131,4496411865,5869373685,7596082396,9751968996,124254...
/* Copyright 2020 The TensorFlow 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
/** * @author George Foster * @file voc.cc Vocabulary associates an integer to every word. * * * COMMENTS: * * Map strings <-> unique indexes * * Technologies langagieres interactives / Interactive Language Technologies * Inst. de technologie de l'information / Institute for Information Technology * Conseil...
// typeinfo.cpp #include <typeinfo> #include <vector> #include <list> #include <iostream> #include <algorithm> #include <cstring> // strlen #include <memory> // unique_ptr using namespace std; #define TABLEN(tab) (int(sizeof(tab) / sizeof((tab)[0]))) namespace coe { string demangle (const type_info& ...
; A165254: a(n) = 9 + n^17. ; 9,10,131081,129140172,17179869193,762939453134,16926659444745,232630513987216,2251799813685257,16677181699666578,100000000000000009,505447028499293780,2218611106740437001,8650415919381337942,30491346729331195913,98526125335693359384,295147905179352825865,827240261886336764186,2185911559738...
; ; Spectrum C Library ; ; ANSI Video handling for ZX Spectrum ; ; Handles colors referring to current PAPER/INK/etc. settings ; ; ** alternate (smaller) 4bit font capability: ; ** use the -DPACKEDFONT flag ; ** ROM font -DROMFONT ; ; set it up with: ; .text_cols = max columns ; .text_rows = max rows ; .DOTS+1...
; This program performs a division operation. ; The idiv instruction is quite complicated compared to other basic arithmetic ; instructions. For more information, see: ; ; https://www.felixcloutier.com/x86/idiv ; ; The idiv instruction is for signed number division, and div for unsigned. ; global asm_func section...
cpu ace1202 page 0 adc a, #055h adc a, 030h adc a, [x] adc a, [#33h, x] add a, #055h add a, 030h add a, [x] add a, [#33h, x] and a, #055h and a, 030h and a, [x] and a, [#33h, x] clr a clr x clr 030h dec a dec x dec 030h ifbit 7, a ifbit 7, 033h ifbit 7, [x] ifc ifeq a, #033h ifeq a, 03...
#include "CameraUtil.h" #include <math.h> #include "MatrixState3D.h" float CameraUtil::degree = 0; float CameraUtil::yj = 30; float CameraUtil::camera9Para[9]; float CameraUtil::tx = 0; float CameraUtil::ty = 0; float CameraUtil::tz = 0; float CameraUtil::cx=0; float CameraUtil::cy=0; float CameraUtil::cz=0; void Camer...
; A315886: Coordination sequence Gal.6.527.6 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; 1,6,8,14,16,22,24,30,36,38,44,46,52,54,60,66,68,74,76,82,84,90,96,98,104,106,112,114,120,126,128,134,136,142,144,150,156,158,164,166,172,174...
/** * Copyright (C) 2018-present MongoDB, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the Server Side Public License, version 1, * as published by MongoDB, Inc. * * This program is distributed in the hope that it will be useful, * but W...
// Runs an infinite loop that listens to the keyboard input. // When a key is pressed (any key), the program blackens the screen, // i.e. writes "black" in every pixel. When no key is pressed, the // program clears the screen, i.e. writes "white" in every pixel. // detect keyboard input (START) @KBD D=M //...
/* * Copyright 2006 Sony Computer Entertainment Inc. * * Licensed under the SCEA Shared Source License, Version 1.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://research.scea.com/scea_shared_source_license.html * * Unless r...
SECTION rodata_font SECTION rodata_font_8x8 PUBLIC _zx7_font_8x8_clairsys PUBLIC _zx7_font_8x8_clairsys_end _zx7_font_8x8_clairsys: BINARY "font_8x8_clairsys.bin.zx7" _zx7_font_8x8_clairsys_end:
; A228547: y-values in the solution to the Pell equation x^2 - 74*y^2 = -1. ; Submitted by Jon Maiga ; 5,36985,273615025,2024203917965,14975060311490045,110785494160199434945,819591070822095108233065,6063334631156365450508779925,44856548781703720780768845652085,331848741823709495179762469625344905,245501694715525406363...
; A102394: A wicked odious sequence. ; 0,2,3,0,5,0,0,8,9,0,0,12,0,14,15,0,17,0,0,20,0,22,23,0,0,26,27,0,29,0,0,32,33,0,0,36,0,38,39,0,0,42,43,0,45,0,0,48,0,50,51,0,53,0,0,56,57,0,0,60,0,62,63,0,65,0,0,68,0,70,71,0,0,74,75,0,77,0,0,80,0,82,83,0,85,0 mov $2,$0 seq $0,10060 ; Thue-Morse sequence: let A_k denote the first...
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2016 Torus Knot Software Ltd Permission is hereby granted, free of charge, to any person obta...
frame 4, 10 frame 5, 07 frame 4, 07 endanim
; A157997: 288n - 1. ; 287,575,863,1151,1439,1727,2015,2303,2591,2879,3167,3455,3743,4031,4319,4607,4895,5183,5471,5759,6047,6335,6623,6911,7199,7487,7775,8063,8351,8639,8927,9215,9503,9791,10079,10367,10655,10943,11231,11519,11807,12095,12383,12671,12959,13247,13535,13823,14111,14399,14687,14975,15263,15551,15839,1612...
; size_t strspn(const char *s1, const char *s2) SECTION code_clib SECTION code_string PUBLIC _strspn EXTERN asm_strspn _strspn: pop af pop hl pop de push de push hl push af jp asm_strspn
SECTION "Tiledata", ROMX xTilesetBG:: INCBIN "res/levels-tileset.BG.2bpp" .end:: xTilesetSprites:: INCBIN "res/levels-tileset.SPRITES.2bpp" .end:: xTilemap:: INCBIN "res/level01.tilemap" .end:: SECTION "OAM Vars", WRAM0 wSpritePaddle:: DS 4*3 wSpriteBall:: DS 4*1
/* * File: exceptions.cpp * -------------------- * This file contains a top-level exception handler to print exceptions thrown * by student code on the console. * * @author Marty Stepp * @version 2016/10/04 * - removed all static variables (replaced with STATIC_VARIABLE macros) * @version 2016/08/02 * - adde...
#pragma once #include <Register/Utility.hpp> namespace Kvasir { //General Purpose Input_Output Port (PI) namespace PiData{ ///<PI Data Register using Addr = Register::Address<0x400c0800,0xffffff00,0x00000000,unsigned>; ///PI0 constexpr Register::FieldLocation<Addr,Register::maskFromRange...
; -------------------------------- __DIVU8: ; 8 bit unsigned integer division ; Divides (Top of stack, High Byte) / A pop hl ; -------------------------------- ex (sp), hl ; CALLEE __DIVU8_FAST: ; Does A / H ld l, h ld h, a ; At this point do H / L ld b, 8 xor a ; A = 0, Carry Flag = 0 __DIV8LOOP: s...
; A138029: Main diagonal of A138028; the most significant digit of n^(n-1). ; 1,2,9,6,6,7,1,2,4,1,2,7,2,7,2,1,4,2,1,5,2,1,9,5,3,2,1,1,8,6,5,4,3,3,3,2,2,2,2,3,3,3,4,4,5,6,8,1,1,1,2,3,4,6,9,1,2,3,5,8,1,2,3,6,1,1,3,5,1,2,3,7,1,2,5,1,2,4,1,2,4,1,2,5,1,2,6,1,3,8,2,5,1,3,8,2,5,1,3,1 mov $3,$0 add $0,1 pow $0,$3 lpb $0 mov...
;******************************************************************************************************** ; uC/CPU ; CPU CONFIGURATION & PORT LAYER ; ; (c) Copyright 1999-2005; Micrium, Inc.; Weston, FL ; ; ...
#include "StdAfx.h" #include "DX11TextLayerNode.h" #include "FontWrapperFactory.h" using namespace FeralTic::Utils; namespace VVVV { namespace Nodes { namespace DX11 { DX11TextLayerNode::DX11TextLayerNode(IIOFactory^ factory, SlimDX::DirectWrite::Factory^ dwFactory) { this->dwFactory = dwFactory; this->iofactory ...
; A059929: a(n) = Fibonacci(n)*Fibonacci(n+2). ; 0,2,3,10,24,65,168,442,1155,3026,7920,20737,54288,142130,372099,974170,2550408,6677057,17480760,45765226,119814915,313679522,821223648,2149991425,5628750624,14736260450,38580030723,101003831722,264431464440,692290561601,1812440220360,4745030099482,12422650078083,32522920...
/****************************************************************************** * Copyright © 2014-2018 The SuperNET Developers. * * * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * ...
; PROLOGUE(mpn_addlsh_n) ; Copyright 2009 Jason Moxham ; ; Windows Conversion Copyright 2008 Brian Gladman ; ; This file is part of the MPIR Library. ; ; The MPIR Library is free software; you can redistribute it and/or modify ; it under the terms of the GNU Lesser General Public License as published ; by the Fr...
; A294628: a(n) = 8*(sigma(n) - n + (1/2)). ; 4,12,12,28,12,52,12,60,36,68,12,132,12,84,76,124,12,172,12,180,92,116,12,292,52,132,108,228,12,340,12,252,124,164,108,444,12,180,140,404,12,436,12,324,268,212,12,612,68,348,172,372,12,532,140,516,188,260,12,868,12,276,332,508,156,628,12,468,220,596,12,988,12,324,396,516,156...
; A288383: Positions of 1 in A288381; complement of A288382. ; 4,6,7,9,10,11,12,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,...
; httpd.asm ; BITS 64 [list -] %include "unistd.inc" %include "sys/wait.inc" %include "sys/socket.inc" [list +] section .bss sockfd: resq 1 sock_addr: resq 1 section .data ; message to keep user confortable that the server is actually running lf ...
Name: tl_msg0.asm Type: file Size: 22443 Last-Modified: '2016-05-13T04:22:15Z' SHA-1: 4EE47224CC5939578A0446E4C0949E60B4FC290D Description: null
%ifndef MATH_POW %define MATH_POW pow16: ; ax ^ bx = ax (bx>=0) mov cx, ax mov dx, bx cmp dx, word 0 jle .end1 .loop: sub dx, word 1 cmp dx, word 0 je .end0 ;imul ax, cx push dx imul cx ;same as above but for 8086 pop dx jmp .loop .end1: mov ax, word 1 ret .end0: ret pow8: ; a...
#ifndef HAVE_UTILS_TIMER_HPP #define HAVE_UTILS_TIMER_HPP #include <chrono> //TODO: move to .cpp file class Timer { private: typedef std::chrono::high_resolution_clock clock; typedef std::chrono::duration<double, std::ratio<1>> second; std::chrono::time_point<clock> ref; public: Timer() { this->reset(...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1994 -- All Rights Reserved PROJECT: GeoDex MODULE: Misc FILE: miscTopBWBitmapPizza.asm AUTHOR: Greg Grisco, Jun 20, 1994 REVISION HISTORY: Name Date Description ---- ---- ----------- grisco 6...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r8 push %r9 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x1d770, %rsi lea addresses_normal_ht+0xeef0, %rdi nop nop sub $2694, %rbx mov $125, %rcx rep movsw nop nop and %r8, %r8 lea addresses_WT_ht+0x17dd0, %r10 nop inc %r9 mov $0x6162...
; A258197: Arithmetic derivative of Pascal's triangle. ; 0,0,0,0,1,0,0,1,1,0,0,4,5,4,0,0,1,7,7,1,0,0,5,8,24,8,5,0,0,1,10,12,12,10,1,0,0,12,32,92,59,92,32,12,0,0,6,60,124,165,165,124,60,6,0,0,7,39,244,247,456,247,244,39,7,0,0,1,16,103,371,493,493,371,103,16,1,0,0,16,61,284,474,1788,1448,1788,474,284,61,16,0,0,1,71,191,2...
; A049656: a(n) = (F(8n+7)-1)/3, where F=A000045 (the Fibonacci sequence). ; 4,203,9552,448756,21081995,990405024,46527954148,2185823439947,102687173723376,4824111341558740,226630545879537419,10646811544996699968,500173512068965361092,23497508255696375271371,1103882714505660672393360,51858990073510355227216564,24362686...
#include <bits/stdc++.h> typedef long long ll; typedef long double ld; #define rep(i,n) for(ll i=0;i<(n);i++) #define repr(i,n) for(ll i=(n-1);i>=0;i--) #define all(x) x.begin(),x.end() #define br cout << "\n"; using namespace std; const int INF = 1e9; const int MOD = 1e9+7; using Graph = vector<vector<ll>>; template<c...
SECTION code_compiler GLOBAL _zxn_p3call zxn_p3call_adjstack: ;; stack: retaddr, af, bc, de, hl, ix exx ld hl, 10 add hl, sp ld sp, hl exx ;; stack: retaddr ret ;; on entry, the we have pushed ;; continuation, callno, himem, af, bc, de, hl, ix, retaddr _zxn_p3call: ;; stack: continuation, callno...
; A031378: a(n) = prime(4*n - 2). ; Submitted by Jon Maiga ; 3,13,29,43,61,79,101,113,139,163,181,199,229,251,271,293,317,349,373,397,421,443,463,491,521,557,577,601,619,647,673,701,733,757,787,821,839,863,887,929,953,983,1013,1033,1061,1091,1109,1151,1181,1213,1231,1277,1291,1307,1361,1399,1429,1451,1481,1493,1531,155...
<% from pwnlib.shellcraft.aarch64.linux import syscall %> <%page args="fd, addr, addr_len"/> <%docstring> Invokes the syscall accept. See 'man 2 accept' for more information. Arguments: fd(int): fd addr(SOCKADDR_ARG): addr addr_len(socklen_t): addr_len </%docstring> ${syscall('SYS_accept', fd, a...
#include "pch-cpp.hpp" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <limits> #include <stdint.h> // System.Char[] struct CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34; // System.Type[] struct TypeU5BU5D_t85B10489E46F06CEC7C4B1CCBD0E01FAB6649755; // UnityEngine.AddCompon...
#pragma once #include <ciso646> // not #include <iterator> // iterator, random_access_iterator_tag, bidirectional_iterator_tag, advance, next #include <type_traits> // conditional, is_const, remove_const #include <nlohmann/detail/exceptions.hpp> #include <nlohmann/detail/iterators/internal_iterator.hpp> #include <nlo...
class Solution { public: string ReverseSentence(string str) { auto size = str.size(); if (size==0) return ""; int mark = 0; str += ' '; for (int i = 0;i<size+1;i++){ if (str[i] == ' '){ ReverseWord(str,mark,i-1); mark = i + 1; ...
; ««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««« .486 ; create 32 bit code .model flat, stdcall ; 32 bit memory model option casemap :none ; case sensitive include \masm32\include\windows.inc include \masm32\macros\macros.asm ; ---------------...
; A131755: a(n) = floor of the average of distances between consecutive positive divisors of n. Also, a(n) = floor((n-1)/(d(n)-1)), where d(n) = A000005(n). ; 1,2,1,4,1,6,2,4,3,10,2,12,4,4,3,16,3,18,3,6,7,22,3,12,8,8,5,28,4,30,6,10,11,11,4,36,12,12,5,40,5,42,8,8,15,46,5,24,9,16,10,52,7,18,7,18,19,58,5,60,20,12,10,21,9,...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/robomaker/model/CreateSimulationApplicationRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::RoboMaker::Model; using namespace Aws::Uti...
; A266286: Number of OFF (white) cells in the n-th iteration of the "Rule 13" elementary cellular automaton starting with a single ON (black) cell. ; 0,2,3,3,6,4,9,5,12,6,15,7,18,8,21,9,24,10,27,11,30,12,33,13,36,14,39,15,42,16,45,17,48,18,51,19,54,20,57,21,60,22,63,23,66,24,69,25,72,26,75,27,78,28,81,29,84,30,87,31,90...
; A152919: a(1)=1, for n>1, a(n) = n^2/4 + n/2 for even n, a(n) = n^2/4 + n - 5/4 for odd n. ; 1,2,4,6,10,12,18,20,28,30,40,42,54,56,70,72,88,90,108,110,130,132,154,156,180,182,208,210,238,240,270,272,304,306,340,342,378,380,418,420,460,462,504,506,550,552,598,600,648,650,700,702,754,756,810,812,868 add $0,1 mov $1,$0...
############################################################################### # Copyright 2019 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...
; A171001: Binomial(n-k,k)^2 where k = ceiling(n/4). ; 1,0,1,4,9,9,36,100,225,400,1225,3136,7056,15876,44100,108900,245025,627264,1656369,4008004,9018009,25050025,64128064,153165376,344622096,1012766976,2538950544,6009350400,13521038400,41408180100,102252852900,240407818596 mov $2,$0 cal $0,57353 ; a(n) = floor(3n/4)....
; A133585: Expansion of x - x^2*(2*x+1)*(x^2-2) / ( (x^2-x-1)*(x^2+x-1) ). ; 1,2,4,5,10,13,26,34,68,89,178,233,466,610,1220,1597,3194,4181,8362,10946,21892,28657,57314,75025,150050,196418,392836,514229,1028458,1346269,2692538,3524578,7049156,9227465,18454930,24157817 mov $31,$0 mov $33,$0 add $33,1 lpb $33 mov $0,$3...
#include <Coordination/NuKeeperStorage.h> #include <Common/ZooKeeper/IKeeper.h> #include <Common/setThreadName.h> #include <mutex> #include <functional> #include <common/logger_useful.h> #include <Common/StringUtils/StringUtils.h> #include <sstream> #include <iomanip> namespace DB { namespace ErrorCodes { extern ...
; L0302.asm mist landing ; Generated 10.29.2000 by mlevel ; Modified 10.29.2000 by Abe Pralle INCLUDE "Source/Defs.inc" INCLUDE "Source/Levels.inc" WATERINDEX EQU 1 LIGHTINDEX EQU 61 VAR_WATER EQU 0 VAR_LIGHT EQU 1 ;--------------------------------------------------------------------- SECTION "Level0302Section",R...
; A164675: a(n) = 8*a(n-2) for n > 2; a(1) = 1, a(2) = 12. ; 1,12,8,96,64,768,512,6144,4096,49152,32768,393216,262144,3145728,2097152,25165824,16777216,201326592,134217728,1610612736,1073741824,12884901888,8589934592,103079215104,68719476736,824633720832,549755813888,6597069766656,4398046511104,52776558133248,351843720...
; These macrodefinitions are copied from linux sources ; Linux is written in C, so the definitions looked a bit ; different there. ; We could have just looked up their values and use ; them directly inright places ; However it would have made the code much less legible %define O_RDONLY 0 %define PROT_READ 0x1 %define ...
.global s_prepare_buffers s_prepare_buffers: push %r15 push %r8 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0xc7f3, %rsi lea addresses_D_ht+0x196e3, %rdi and $43018, %rdx mov $18, %rcx rep movsw nop nop nop nop inc %r8 lea addresses_WC_ht+0xecf3, %rbp nop nop nop nop and $57301, ...
; ; kempston/cursor/fuller/sinclair/timex 2068 joystick detection and testing ; Rui Ribeiro/2020 ; ; table driven routines to deal with the several types of ZX Spectrum joysticks ; ; MIT License ; ; pasmo --tapbas joy.asm joy.tap ; ; 20.Oct.2021 - fix 2068 joystick bug - fire is bit 7 CL_ALL EQU $0DAF ; clearing ...
INCLUDE "config_private.inc" SECTION code_driver EXTERN siobRxBuffer EXTERN siobTxBuffer EXTERN sioaRxBuffer EXTERN sioaTxBuffer EXTERN siobRxCount, siobRxIn EXTERN siobTxCount, siobTxOut EXTERN sioaRxCount, sioaRxIn EXTERN sioaTxCount, sioaTxOut PUBLIC __siob_interrupt_tx_empty PUBLIC __siob_interrupt_e...
; ; Z88dk Generic Floating Point Math Library ; ; divide bc ix de by FA, leave result in FA ; ; $Id: fdiv_noafiy.asm,v 1.4 2016-06-21 21:16:49 dom Exp $ SECTION code_fp PUBLIC fdiv EXTERN sgn EXTERN div14 EXTERN pack2 EXTERN norm4 EXTERN fa EXTERN extra .fdiv call sgn ret z ;dividing by ze...
;Testname=optimized; Arguments=-Ox -fbin -obr2030823.bin; Files=stdout stderr br2030823.bin bits 64 VFMADDPD xmm0, xmm1, [0], xmm3 VFMADDPD xmm0, xmm1, xmm2, [0] VFMADDPD ymm0, ymm1, [0], ymm3 VFMADDPD ymm0, ymm1, ymm2, [0]
; A152997: Twice 13-gonal numbers: a(n) = n*(11*n - 9). ; 0,2,26,72,140,230,342,476,632,810,1010,1232,1476,1742,2030,2340,2672,3026,3402,3800,4220,4662,5126,5612,6120,6650,7202,7776,8372,8990,9630,10292,10976,11682,12410,13160,13932,14726,15542,16380,17240,18122,19026,19952,20900,21870,22862,23876,24912,25970,27050,281...
; A019762: Decimal expansion of 2*e. ; Submitted by Jamie Morken(s4) ; 5,4,3,6,5,6,3,6,5,6,9,1,8,0,9,0,4,7,0,7,2,0,5,7,4,9,4,2,7,0,5,3,2,4,9,9,5,5,1,4,4,9,4,1,8,7,3,9,9,9,1,9,1,4,9,9,3,3,9,3,5,2,5,5,4,4,8,1,5,3,2,6,0,7,0,7,0,9,5,1,8,9,1,4,2,7,6,4,3,5,7,0,5,0,3,3,2,8,5,4 add $0,1 seq $0,11543 ; Decimal expansion of e t...
page ,132 TITLE ssmisc - Scan Miscellaneous opcodes ;*** ;ssmisc - Scan Miscellaneous opcodes ; ; Copyright <C> 1986, Microsoft Corporation ; ;Purpose: ; ; This module contains miscellaneous scan utilities. ; ; ;**************************************************************************** .xlist include version....
.proc fmulinit ldx #$00 txa .byte $c9 ; CMP #immediate - skip TYA and clear carry flag lb1: tya adc #$00 ml1: sta square1_hi,x tay cmp #$40 txa ror @ ml9: adc #$00 sta ml9+1 inx ml0: sta square1_lo,x bne lb1 inc ml0+2 inc ml1+2 clc iny bne lb1 ldx #$00 ldy #$ff lp lda square1_hi+1,x sta square2_hi...