text
stringlengths
1
1.05M
#include <iostream> #include "Solution1.h" void test(vector<int> houses, vector<int> heaters) { Solution solution; cout << solution.findRadius(houses, heaters) << endl; } int main() { test({1, 2, 3}, {2}); // 1 test({1, 2, 3, 4}, {1, 4}); // 1 test({1, 5}, {2}); // 3 test({1, 2, 3, 5, 15}, {2, 30}); // 13...
; A267873: Number of ON (black) cells in the n-th iteration of the "Rule 235" elementary cellular automaton starting with a single ON (black) cell. ; 1,1,4,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,81,83,85,87,89,91,93,95,97,99,101,103,105,107,109,111,1...
SECTION code_driver SECTION code_driver_terminal_output PUBLIC zx_01_output_fzx_oterm_msg_cls EXTERN asm_zx_cls_wc, l_offset_ix_de zx_01_output_fzx_oterm_msg_cls: ; clear the window ; ; can use : af, bc, de, hl ld hl,16 call l_offset_ix_de ; hl = window.rect * push hl ld l,(ix+...
; float _sqrf (float number) __z88dk_fastcall SECTION code_clib SECTION code_fp_math32 PUBLIC asm_sqrf EXTERN m32_fssqr_fastcall ; square (^2) sccz80 float ; ; enter : stack = ret ; DEHL = sccz80_float number ; ; exit : DEHL = sccz80_float(number^2) ; ; uses : af, bc, de...
/* */ /* ---------------------------------------------------------------------- * modPMUX Module * ---------------------------------------------------------------------- * Description: * * PMUX takes an array of Express primitives and outputs the value and * index of the element that changed. * * Auth...
; uint in_LookupKey(uchar c) SECTION code_clib PUBLIC in_LookupKey PUBLIC _in_LookupKey EXTERN in_keytranstbl ; enter: L = ascii character code ; exit : L = scan row ; H = mask ; else: L = scan row, H = mask ; bit 6 of L set if SHIFT needs to be pressed ; bit 7 of L set if CTRL...
; Lists the current directory. .include "c64.inc" .include "cshell.inc" .cpu "6502" CSHELL_HEADER jsr open_directory ldx #1 jsr CHKIN line_loop: ; Skip until the next ". - jsr READST and #$40 ; check for EOF bne eof jsr CHRIN cmp #'"' bne - jsr CHROUT - jsr READST and #$40 ; check for EOF bne...
; A274716: a(2*n+1) = a(2*floor(n/2)+1) + n, a(2*n) = a(n), for n>=1 with a(1)=0. ; 0,0,1,0,3,1,4,0,7,3,8,1,10,4,11,0,15,7,16,3,18,8,19,1,22,10,23,4,25,11,26,0,31,15,32,7,34,16,35,3,38,18,39,8,41,19,42,1,46,22,47,10,49,23,50,4,53,25,54,11,56,26,57,0,63,31,64,15,66,32,67,7,70,34,71,16,73,35,74,3,78,38,79,18,81,39,82,8,8...
; the printer demonstration. ; this is simplified/ms-dos complatible version. ; this example may not work on Windows XP, however it may work for Windows 95/98: ; http://support.microsoft.com/default.aspx?scid=kb;en-us;Q258878 ; the printer device is created by Andrew Nelis. ; the original example that uses i/o port...
; 04:8505:B9 5B 85 LDA $855B,Y ; 010515:B9 5B 85 LDA $855B,Y .org $8505 jmp $AF60
; A013792: a(n) = 10^(4*n + 1). ; Submitted by Christian Krause ; 10,100000,1000000000,10000000000000,100000000000000000,1000000000000000000000,10000000000000000000000000,100000000000000000000000000000,1000000000000000000000000000000000,10000000000000000000000000000000000000,100000000000000000000000000000000000000000,1...
; A307692: g values of Triphosian primes. ; 0,2,0,2,0,2,0,5,0,5,0,5,0,11,0,11,0,11 mov $3,$0 mod $3,2 mov $2,$3 lpb $0 sub $0,1 trn $0,5 add $3,$2 mul $3,2 lpe mov $0,$3 div $0,2
; A126785: Numbers k such that 10*k + 11 is prime. ; 0,2,3,5,6,9,12,14,17,18,20,23,24,26,27,30,32,39,41,42,45,48,51,53,56,59,62,63,65,68,69,74,75,80,81,87,90,93,96,98,101,102,104,105,108,114,116,117,119,122,128,129,131,135,137,144,146,147,150,152,156,159,161,171,173,179,180,182,185,186,189,192,194,200,207,210,212,213,2...
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "manager.h" #include "output-connection.h" #include <vespa/vespalib/net/socket_address.h> #include <vespa/vespalib/util/exceptions.h> #include <vespa/vespalib/util/size_literals.h> #include <string> #incl...
#ifndef __RULE_COMPOSER_HPP__ #define __RULE_COMPOSER_HPP__ #include <vector> #include <string> #include <utility> #include <cassert> #include "meta_lib/variadic_list.hpp" #include "rule_generator.hpp" struct RuntimeRule { std::string Fname; std::string Gname; ComposeResult composability; }; template <typen...
; A212697: a(n) = 2*n*3^(n-1). ; 2,12,54,216,810,2916,10206,34992,118098,393660,1299078,4251528,13817466,44641044,143489070,459165024,1463588514,4649045868,14721978582,46490458680,146444944842,460255540932,1443528742014,4518872583696,14121476824050,44059007691036,137260754729766,427033459159272,1326853962387738,4117822...
; encoding: utf-8 ; ff3_menu_of_stomach ; ; description: ; re-implementation of fatty choccobo's (aka 'stomach') menu. ; ;================================================================================================== .ifdef _FEATURE_STOMACH_AMOUNT_1BYTE STOMACH_TEXT_BUFFER = $7400 ;;original = $73...
; ; ZX Spectrum specific routines ; ; int zx_interface1(); ; ; The result is: ; - 0 (false) if the ZX Interface1 is missing ; - 1 (true) if the ZX Interface1 is connected ; ; This function has the side of loading the Interface 1 ; system variables if they aren't already present. ; ; Shouldn't conflict with other interf...
// Copyright (c) 2013 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 "content/browser/webrtc/webrtc_internals.h" #include <stddef.h> #include <memory> #include <utility> #include "base/bind.h" #include "base...
//===--- TypeCheckProtocolInference.cpp - Associated Type Inference -------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
; ; Sharp OZ family functions ; ; ported from the OZ-7xx SDK by by Alexander R. Pruss ; by Stefano Bodrato - Oct. 2003 ; ; ; display backlight control functions ; ; ; void oztogglelight(void) ; ; ; ; ------ ; $Id: oztogglelight.asm,v 1.1 2003/10/21 17:15:21 stefano Exp $ ; XLIB oztogglelight XREF ozbacklight LI...
; ---------------------------------------------------------------- ; Z88DK INTERFACE LIBRARY FOR THE BIFROST* ENGINE - RELEASE 1.2/L ; ; See "bifrost_h.h" for further details ; ---------------------------------------------------------------- ; void BIFROSTH_resetAnim4Frames(void) SECTION code_clib SECTION code_bifros...
/* * Copyright 2010-2016 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...
// Copyright (c) 2007-2017 Hartmut Kaiser // // 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 <hpx/config.hpp> #include <hpx/performance_counters/counters.hpp> #include <hpx/runtime/components/derived_co...
; A077998: Expansion of (1-x)/(1-2*x-x^2+x^3). ; Submitted by Jamie Morken(s4) ; 1,1,3,6,14,31,70,157,353,793,1782,4004,8997,20216,45425,102069,229347,515338,1157954,2601899,5846414,13136773,29518061,66326481,149034250,334876920,752461609,1690765888,3799116465,8536537209,19181424995,43100270734,96845429254,217609704247...
SeafoamIslands2_h: db CAVERN ; tileset db SEAFOAM_ISLANDS_2_HEIGHT, SEAFOAM_ISLANDS_2_WIDTH ; dimensions (y, x) dw SeafoamIslands2Blocks, SeafoamIslands2TextPointers, SeafoamIslands2Script ; blocks, texts, scripts db $00 ; connections dw SeafoamIslands2Object ; objects
; A124625: Even numbers sandwiched between 1's. ; 1,0,1,2,1,4,1,6,1,8,1,10,1,12,1,14,1,16,1,18,1,20,1,22,1,24,1,26,1,28,1,30,1,32,1,34,1,36,1,38,1,40,1,42,1,44,1,46,1,48,1,50,1,52,1,54,1,56,1,58,1,60,1,62,1,64,1,66,1,68,1,70,1,72,1,74,1,76,1,78,1,80,1,82,1,84,1,86,1,88,1,90,1,92,1,94,1,96,1,98 mov $1,$0 sub $0,1 mod $...
; A046804: Primes p modulo t where t = terminal digit of p. ; 0,0,0,0,0,1,3,1,2,2,0,2,0,1,5,2,5,0,4,0,1,7,2,8,6,0,1,2,1,2,1,0,4,4,5,0,3,1,6,2,8,0,0,1,1,1,0,1,3,4,2,5,0,0,5,2,8,0,4,0,1,2,6,0,1,2,0,1,4,7,2,8,3,1,1,2,2,5,0,4,5,0,0,1,7,2,8,2,0,1,5,2,4,0,4,2,5,0,1,0 seq $0,40 ; The prime numbers. add $1,$0 mod $0,10 mod $1...
.size 8000 .text@48 jp lstatint .text@100 jp lbegin .data@143 c0 .text@150 lbegin: ld a, 00 ldff(ff), a ld a, 30 ldff(00), a ld a, 01 ldff(4d), a stop, 00 ld c, 41 ld b, 02 ld d, 03 lbegin_waitm2: ldff a, (c) and a, d cmp a, b jrnz lbegin_waitm2 ld a, 08 ldff(c), a ld a, 02 ldff(ff), a ei ld ...
// // MSSocketInterface.hpp // MSSocket // // Created by Mihail Shevchuk on 15.01.18. // Copyright © 2018 Mihail Shevchuk. All rights reserved. // #ifndef MSSocketInterface_hpp #define MSSocketInterface_hpp #include "MSTypes.h" class MSSocketInterface { public: MSSocketInterface() {}; ~MSSocketInterface(...
; A266912: Numbers n which are anagrams of n+18. ; 13,24,35,46,57,68,79,102,113,124,135,146,157,168,179,202,213,224,235,246,257,268,279,302,313,324,335,346,357,368,379,402,413,424,435,446,457,468,479,502,513,524,535,546,557,568,579,602,613,624,635,646,657 mov $2,$0 mov $3,$0 sub $0,$0 add $0,3 trn $3,3 add $0,$3 sub $...
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27027.1 TITLE C:\Users\DAG\Documents\_Clients\CodeProject Authors Group\Windows on ARM\libxml2\libxml2-2.9.9\xpointer.c .686P .XMM include listing.inc .model flat INCLUDELIB MSVCRTD INCLUDELIB OLDNAMES _DATA SEGMENT COMM _xmlMalloc:DWORD CO...
%include "macros/patch.inc" ; Make the AI use the EMPulse SW like it'd be firing a multi missile ; Edit the switch jump table in HouseClass::AI_TryFireSW @SET 0x004C9F8C, {db 0x0A}
INCLUDE "graphics/grafix.inc" SECTION code_clib PUBLIC cleargraphics PUBLIC _cleargraphics PUBLIC GFX_COUT PUBLIC LINDSP EXTERN base_graphics ; ; $Id: clsgraph.asm,v 1.7 2017-01-02 21:51:24 aralbrec Exp $ ; ; ****************************************************************** ...
[bits 16] swithProtectedMode: enable_a20: in al, 0x64 test al, 0x2 jnz enable_a20 mov al, 0xdf out 0x64, al cli lgdt [GDT_descriptor] mov eax, cr0 or eax, 0x1 mov cr0, eax jmp CODE_SEG: initProtectedMode [bits 32] initProtectedMode: mov ax, DATA_SEG mov ds, ax mov es, ax mo...
;; Copyright (C) 2013 Google Inc. All rights reserved. ;; ;; 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 ...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; The MIT License ; ; Copyright (c) 2014 Intel Corporation ; ; Permission is hereby granted, free of charge, to any person ; obtaining a copy of this software and associated documentation ; files (the "Software"), to deal in the Software...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" #include "extern/beatsaber-hook/shared/utils/byref.hpp" // Including type: OVR.OpenVR.CVR...
; A315308: Coordination sequence Gal.5.299.5 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,10,16,20,26,30,36,40,46,52,56,62,66,72,76,82,86,92,98,102,108,112,118,122,128,132,138,144,148,154,158,164,168,174,178,184,190,194,200,20...
#include <bits/stdc++.h> using namespace std; int main() { float x,y,z,total,avg; string choice; int i; for (i=0; i==0;) { cout<<"Enter the first mark: "; cin>>x; cout<<endl<<"Enter the second mark: "; cin>>y; cout<<endl<<"Enter the third mark: "; cin...
;************************************************************** ;* ;* C P / M version 2 . 2 ;* ;* Reconstructed from memory image on February 27, 1981 ;* ;* by Clark A. Calkins ;* ;************************************************************** ; ; Set memory limit here. This is the a...
dnl mpn_lshiftc dnl Copyright 2009 Jason Moxham dnl This file is part of the MPIR Library. dnl The MPIR Library is free software; you can redistribute it and/or modify dnl it under the terms of the GNU Lesser General Public License as published dnl by the Free Software Foundation; either version 2.1 of the Lic...
#include "stdafx.h" #include "History.h" #include "Types.h" // true if site matches. bool Item::evalSite(unsigned short site) const { return _site == site; } // true if site & LCN match. bool Item::evalLCN(unsigned short site, unsigned short lcn) const { return _site == site && _lcn == lcn; } // tr...
;/***************************************************************************** ; * ; * XVID MPEG-4 VIDEO CODEC ; * - GMC core functions - ; * Copyright(C) 2006 Pascal Massimino <skal@planet-d.net> ; * ; * This file is part of Xvid, a free MPEG-4 video encoder/decoder ; * ; * Xvid is free software; you can redistr...
; A004757: Binary expansion starts 101. ; 5,10,11,20,21,22,23,40,41,42,43,44,45,46,47,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,320,321,322,323,324,325,326,327,328,329,330,331,332,333,33...
_benchmark: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" #include "fcntl.h" int main(int argc, char *argv[]) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl -0...
// // Created by rui.zhou on 9/26/2019. // /* * Given a nested list of integers, implement an iterator to flatten it. Each element is either an integer, or a list -- whose elements may also be integers or other lists. Example 1: Input: [[1,1],2,[1,1]] Output: [1,1,2,1,1] Explanation: By calling next repeatedly unt...
; A163102: a(n) = n^2*(n+1)^2/2. ; 0,2,18,72,200,450,882,1568,2592,4050,6050,8712,12168,16562,22050,28800,36992,46818,58482,72200,88200,106722,128018,152352,180000,211250,246402,285768,329672,378450,432450,492032,557568,629442,708050,793800,887112,988418,1098162,1216800,1344800,1482642,1630818,1789832,1960200,2142450,2...
start: sng 168, 61688 ;triangle a = 10 d = 8 v = 15 s = 15 r = 8 800ms + release = 1550 ms ldi r1, 1000 ;1000hz call playnote sng 168, 61944 ;sawtooth a = 10 d = 8 v = 15 s = 15 r = 8 800ms + release = 1550 ms call playnote sng 168, 62200 ;pulse a = 10 d = 8 v = 15 s = 15 r = 8 800ms + release = 1550 ms call...
Name: ys_w17.asm Type: file Size: 13158 Last-Modified: '2016-05-13T04:51:43Z' SHA-1: 740A54D60C11977CB5B98DA1873644429CFD3F5C Description: null
; ******************************************************************************************** ; ******************************************************************************************** ; ; Name : header.asm ; Purpose : .. ; Created : 15th Nov 1991 ; Updated : 4th Jan 2021 ; Authors : Fred Bowen ; ; **...
; A079253: a(n) is taken to be the smallest positive integer greater than a(n-1) which is consistent with the condition "n is a member of the sequence if and only if a(n) is even". ; 0,3,5,6,7,8,10,12,14,15,16,17,18,19,20,22,24,26,28,30,32,33,34,35,36,37,38,39,40,41,42,43,44,46,48,50,52,54,56,58,60,62,64,66,68,69,70,71...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0x2218, %rbx nop nop nop nop nop add %r9, %r9 movups (%rbx), %xmm3 vpextrq $0, %xmm3, %r10 nop nop nop nop nop and $19491, %rbx lea addresses_normal_ht+0x12898, %rsi lea ad...
// Copyright (c) Microsoft Corporation. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #define _FORMAT_CODEPAGE (__std_code_page{932}) #include <cassert> #include <clocale> #include <format> #include <string_view> #include "test_format_support.hpp" using namespace std; void test_multibyte...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "walletdb.h" #include "wallet.h" #include <boost/version.hpp> #include <b...
// // UIFocusTest.cpp // cocos2d_tests // // Created by guanghui on 5/4/14. // // #include "UIFocusTest.h" USING_NS_CC; using namespace cocos2d::ui; UIFocusTests::UIFocusTests() { ADD_TEST_CASE(UIFocusTestHorizontal); ADD_TEST_CASE(UIFocusTestVertical); ADD_TEST_CASE(UIFocusTestNestedLayout1); ADD...
// Source : https://leetcode.com/problems/gas-station/ // Author : Yijing Bai // Date : 2016-01-14 /********************************************************************************** * * There are N gas stations along a circular route, where the amount of gas at station * i is gas[i]. * * You have a car with an...
mad(8) g26<1>F g22<4,4,1>F g2.4<0,1,0>F g5<4,4,1>F { align16 1Q }; mad(16) g21<1>F g19<4,4,1>F g11<4,4,1>F g11<4,4,1>F { align16 1H }; mad(8) g64<1>DF g62<4,4,1>DF g40<4,4,1>DF g92<4,4,1>DF { align16 1Q }; mad(8) g74<1>DF -g50<4,4,1>D...
SECTION "Map Blocks 1", ROMX DebugRoom_Blocks: INCBIN "maps/DebugRoom.blk" SandgemPokemonCenter1F_Blocks: JubilifePokemonCenter1F_Blocks: OreburghPokemonCenter1F_Blocks: INCBIN "maps/PokemonCenter1F.blk" Pokecenter2F_Blocks: INCBIN "maps/Pokecenter2F.blk" JubilifeWestGate_Blocks: CanalaveEastGate_Blocks: INCB...
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27026.1 TITLE Z:\Sources\Lunor\Repos\rougemeilland\Palmtree.Math.Core.Sint\Palmtree.Math.Core.Sint\debug.c .686P .XMM include listing.inc .model flat INCLUDELIB MSVCRTD INCLUDELIB OLDNAMES PUBLIC _test_total_count PUBLIC _test_ok_count PUBL...
; A295295: Sum of squarefree divisors of the powerful part of n: a(n) = A048250(A057521(n)). ; 1,1,1,3,1,1,1,3,4,1,1,3,1,1,1,3,1,4,1,3,1,1,1,3,6,1,4,3,1,1,1,3,1,1,1,12,1,1,1,3,1,1,1,3,4,1,1,3,8,6,1,3,1,4,1,3,1,1,1,3,1,1,4,3,1,1,1,3,1,1,1,12,1,1,6,3,1,1,1,3,4,1,1,3,1,1,1,3,1,4,1,3,1,1,1,3,1,8,4,18 seq $0,57918 ; Number...
/* * Copyright (c) 2017, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publi...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r13 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x3864, %r13 cmp %r11, %r11 mov $0x6162636465666768, %rax movq %rax, (%r13) sub $7730, %rdx lea addresses_normal_ht+0x19264, %r12 sub %r10, %r10 movw $0x6162...
section .text use16 extern __heap_top ; (signed, unsigned) bx:ax -= *(signed, unsigned *)di global lsubl global lsubul lsubl: lsubul: push bx push ax pop eax cmp di, __heap_top ; judge DS/SS jb .0 db 0x36 ; SS prefix .0: sub eax, [di] push eax pop ax pop bx ret
#ifndef HTTP_REQUEST_HPP #define HTTP_REQUEST_HPP #include <string> #include <vector> #include "header.hpp" namespace http { namespace server { /// A request received from a client. struct request { std::string method; std::string uri; int http_v...
; A133540: Sum of fourth powers of five consecutive primes. ; Submitted by Jamie Morken(s2) ; 17764,46309,129749,259445,536885,1229525,2124485,3915125,6610565,9749525,13921925,20888885,31132085,42152165,58884485,79416485,99924245,126756965,160369445,202960565,266078165,341740325,415341125,498962405 mov $3,5 mov $5,$0 ...
; A212983: Number of (w,x,y) with all terms in {0,...,n} and w<=x+y and x<=y. ; 1,5,15,33,62,104,162,238,335,455,601,775,980,1218,1492,1804,2157,2553,2995,3485,4026,4620,5270,5978,6747,7579,8477,9443,10480,11590,12776,14040,15385,16813,18327,19929,21622,23408,25290,27270,29351 mov $13,$0 mov $15,$0 add $15,1 lpb $15 ...
#include "tStack.h" #include <iostream> #include "raylib.h" #include <filesystem> #include "Sprites.h" #include "SpellElement.h" #include "tForwardList.h" #include "tQueue.h" //int main() //{ // // Initialization // //-------------------------------------------------------------------------------------- // int screenW...
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
// // Created by Owner on 1/8/2018. // #include <algorithm> #include "Layer.h" #include "Scene.h" void Layer::updateSublayers(double dt) { for( int i = sublayers.size()-1; i >= 0; i-- ) { if( sublayers[i]->scene && (sublayers[i]->isUpdatable || sublayers[i]->isInteractable) ) sublayers[i]->update(dt); sublay...
; A268227: a(n) = sum of digits of (2n)^2. ; Submitted by Jon Maiga ; 0,4,7,9,10,1,9,16,13,9,4,16,18,19,19,9,7,13,18,13,7,18,19,10,9,7,13,18,13,16,9,19,19,18,16,13,18,22,25,18,10,19,18,25,22,9,22,25,18,19,1,9,16,13,18,4,16,27,19,19,9,25,22,27,22,16,18,28,28,18,16,13,18,13,16,9,10,19,18,25,13,18,31,25,18,19,28,18,25,22,...
/** * Copyright 2020 Florian Kramer * * 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...
/* Copyright 2013-present Barefoot Networks, 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 w...
// Copyright (c) 2021 PaddlePaddle 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...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r13 push %r14 push %rbx push %rdi push %rdx push %rsi // Faulty Load lea addresses_WT+0x890e, %r13 nop add %rdx, %rdx movups (%r13), %xmm7 vpextrq $1, %xmm7, %rdi lea oracles, %rdx and $0xff, %rdi shlq $12, %rdi mov (%rdx,...
############################################################################### # 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...
; A100039: Positions of occurrences of the natural numbers as fourth subsequence in A100035. ; 22,35,52,73,98,127,160,197,238,283,332,385,442,503,568,637,710,787,868,953,1042,1135,1232,1333,1438,1547,1660,1777,1898,2023,2152,2285,2422,2563,2708,2857,3010,3167,3328,3493,3662,3835,4012,4193,4378,4567,4760 add $0,3 mul $...
; does the actual loading from the drive [bits 16] ; force 16 bit code for real mode load_sectors: ; uses BIOS int 13h to read from disk ; al - number of sectors ; bx - load address base ; dh - head (0 based) ; dl - drive ; ch - cylinder (0 based) ; cl - sector to begin reading from (1 based) ; save registe...
; A105150: Approximation to leading digit of n-th Fibonacci number. ; 0,1,1,2,3,5,8,1,2,3,5,8,1,2,3,5,8,1,2,3,5,8,1,2,3,5,8,1,2,3,5,8,1,2,3,5,8,1,2,3,5,8,1,2,3,5,8,1,2,3,5,8,1,2,3,5,8,1,2,3,5,8,1,2,3,5,8,1,2,3,5,8,1,2,3,5,8,1,2,3,5,8,1,2,3,5,8,1,2,3,5,8,1,2,3,5,8,1,2,3,5,8,1,2,3 mov $1,$0 trn $0,1 lpb $0 mov $2,$0 ...
;-------------------------------------------------------- ; File Created by SDCC : free open source ANSI-C Compiler ; Version 4.0.2 #11722 (Linux) ;-------------------------------------------------------- ; Processed by Z88DK ;-------------------------------------------------------- EXTERN __divschar EXTERN __divsc...
; A047456: Numbers that are congruent to {0, 2, 3, 4} mod 8. ; 0,2,3,4,8,10,11,12,16,18,19,20,24,26,27,28,32,34,35,36,40,42,43,44,48,50,51,52,56,58,59,60,64,66,67,68,72,74,75,76,80,82,83,84,88,90,91,92,96,98,99,100,104,106,107,108,112,114,115,116,120,122,123,124,128,130,131,132,136,138,139,140,144,146,147,148,152,154,1...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2018 Intel Corporation All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions ; are met: ; * Redistributions of so...
; BSD 3-Clause License ; Copyright (c) 2021, AtieP ; 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 co...
// Copyright (c) 2011-2016 The Ilcoin Core developers // All Rights Reserved. Ilgamos International 2017© #if defined(HAVE_CONFIG_H) #include "config/ilcoin-config.h" #endif #include "rpcconsole.h" #include "ui_debugwindow.h" #include "bantablemodel.h" #include "clientmodel.h" #include "guiutil.h" #include "platform...
; Z88 Small C+ Run Time Library ; Long functions ; SECTION code_crt0_sccz80 PUBLIC l_glong PUBLIC l_glonghlp ;Fetch long dehl from (hl) .l_glonghlp ld a,(hl+) ld h,(hl) ld l,a .l_glong ld c,(hl) inc hl ld b,(hl) inc hl ld e,(hl) inc hl ld d,(h...
; A196514: Partial sums of A100381. ; 0,4,28,124,444,1404,4092,11260,29692,75772,188412,458748,1097724,2588668,6029308,13893628,31719420,71827452,161480700,360710140,801112060,1769996284,3892314108,8522825724,18589155324,40399536124,87509958652,188978561020,406948151292,874025844732,1872605741052,4002909519868,85383949...
#include <iostream> using namespace std; class Node{ public: int value; Node* next; public: Node(int data) { value = data; } ~Node(){} }; void printLinkedList(Node* head) { cout << "Linked List: "; while(head != NULL) { cout << ...
; A024347: Expansion of 1/((1-x)(1-6x)(1-9x)(1-12x)). ; Submitted by Jon Maiga ; 1,28,523,8218,117649,1592416,20790631,264958246,3320750557,41132364364,505211150899,6167574174034,74958865496425,908053837462072,10973667150086527,132377759927894782,1594780291608334453,19193608363553720740,230829626012876016715,2774513174...
// Copyright 2015 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 "platform/fonts/SmallCapsIterator.h" #include "platform/Logging.h" #include "testing/gtest/include/gtest/gtest.h" #include <string> namespace b...
map_header SaffronMart, SAFFRON_MART, MART, 0 end_map_header
// Copyright (c) 2011 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 "base/memory/scoped_vector.h" #include "base/string16.h" #include "base/utf_string_conversions.h" #include "components/autofill/browser/autof...
////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2005-2009. 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) // // See http://www.boost.org/libs/interpr...
dnl x86 mpn_udiv_qrnnd -- 2 by 1 limb division dnl Copyright 1999, 2000, 2002 Free Software Foundation, Inc. dnl dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or dnl modify it under the terms of the GNU Lesser General Public License as dnl p...
; A247608: a(n) = Sum_{k=0..3} binomial(6,k)*binomial(n,k). ; 1,7,28,84,195,381,662,1058,1589,2275,3136,4192,5463,6969,8730,10766,13097,15743,18724,22060,25771,29877,34398,39354,44765,50651,57032,63928,71359,79345,87906,97062,106833,117239,128300,140036,152467,165613,179494,194130,209541,225747,242768,260624,279335,298...
// 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 "base/basictypes.h" #include "base/bind.h" #include "base/file_util.h" #include "base/location.h" #include "base/message_loop_proxy.h" #inclu...
/*---------------------------------------------------------------------------*\ Copyright Niels Gjøl Jacobsen, Technical University of Denmark. ------------------------------------------------------------------------------- License This file is part of Caelus. CAELUS is free software: you can redistribute it a...
; A274520: a(n) = ((1 + sqrt(7))^n - (1 - sqrt(7))^n)/sqrt(7). ; 0,2,4,20,64,248,880,3248,11776,43040,156736,571712,2083840,7597952,27698944,100985600,368164864,1342243328,4893475840,17840411648,65041678336,237125826560,864501723136,3151758405632,11490527150080,41891604733952,152726372368384 add $0,1 mov $4,2 lpb $0,1...
; A230893: Number of n X 2 0..3 arrays x(i,j) with each element horizontally or vertically next to at least one element with value (x(i,j)+1) mod 4 and at least one element with value (x(i,j)-1) mod 4, no adjacent elements equal, and upper left element zero. ; Submitted by Jamie Morken(s4) ; 0,2,2,10,22,70,186,538,1494...
; A248076: Partial sums of the sum of the 5th powers of the divisors of n: Sum_{i=1..n} sigma_5(i). ; 1,34,278,1335,4461,12513,29321,63146,122439,225597,386649,644557,1015851,1570515,2333259,3415660,4835518,6792187,9268287,12572469,16673621,21988337,28424681,36677981,46446732,58699434,73107634,90873690,111384840,136555...
; A098850: a(n) = n*(n + 18). ; 0,19,40,63,88,115,144,175,208,243,280,319,360,403,448,495,544,595,648,703,760,819,880,943,1008,1075,1144,1215,1288,1363,1440,1519,1600,1683,1768,1855,1944,2035,2128,2223,2320,2419,2520,2623,2728,2835,2944,3055,3168,3283,3400,3519,3640,3763,3888,4015,4144,4275,4408,4543,4680,4819,4960,510...