text
stringlengths
1
1.05M
// Author: btjanaka (Bryon Tjanaka) // Problem: (UVa) 990 #include <bits/stdc++.h> #define GET(x) scanf("%d", &x) #define GED(x) scanf("%lf", &x) typedef long long ll; using namespace std; int max_d, w, n; int d[40]; int v[40]; pair<int, pair<int, int>> dp[40][350]; // {max_value, {next_id, next_d}} pair<int, pair<i...
; A226577: Smallest number of integer sided squares needed to tile a 4 X n rectangle. ; 0,4,2,4,1,5,3,5,2,6,4,6,3,7,5,7,4,8,6,8,5,9,7,9,6,10,8,10,7,11,9,11,8,12,10,12,9,13,11,13,10,14,12,14,11,15,13,15,12,16,14,16,13,17,15,17,14,18,16,18,15,19,17,19,16,20,18,20,17,21,19,21,18,22,20,22,19,23,21,23,20,24,22,24,21,25,23,2...
; int obstack_grow0_callee(struct obstack *ob, void *data, size_t size) SECTION code_alloc_obstack PUBLIC _obstack_grow0_callee _obstack_grow0_callee: pop af pop hl pop de pop bc push af INCLUDE "alloc/obstack/z80/asm_obstack_grow0.asm"
; ; ZX Spectrum specific routines ; ; int trdos_installed(); ; ; The result is: ; - 0 (false) if the TRDOS system variables are not installed ; - 1 (true) if the Betadisk interface is connected and activated. ; ; $Id: ; XLIB trdos_installed trdos_installed: ld hl,(23635) ld de,23867 sbc hl,de ...
; A212262: a(n) = 3^n + Fibonacci(n). ; 1,4,10,29,84,248,737,2200,6582,19717,59104,177236,531585,1594556,4783346,14349517,43047708,129141760,387423073,1162265648,3486791166,10460364149,31381077320,94143207484,282429582849,847288684468,2541865949722,7625597681405,22876792772772,68630377879112,205891132926689,61767339763...
// // Persistent Heap (based on randomized meldable heap) // // Description: // Meldable heap with O(1) copy. // // Algorithm: // It is a persistence version of randomized meldable heap. // // Complexity: // O(log n) time/space for each operations. // // #include <iostream> #include <vector> #include <cstdio> #...
; DO NOT MODIFY THIS FILE DIRECTLY! ; author: @TinySecEx ; shadowssdt asm stub for 6.1.7600-sp0-windows-7 amd64 option casemap:none option prologue:none option epilogue:none .code ; ULONG64 __stdcall NtUserGetThreadState( ULONG64 arg_01 ); NtUserGetThreadState PROC STDCALL mov r10 , rcx mov e...
#ifndef STAN_MATH_FWD_SCAL_FUN_LOG_INV_LOGIT_HPP #define STAN_MATH_FWD_SCAL_FUN_LOG_INV_LOGIT_HPP #include <stan/math/fwd/core.hpp> #include <stan/math/prim/scal/fun/log_inv_logit.hpp> namespace stan { namespace math { template <typename T> inline fvar<T> log_inv_logit(const fvar<T>& x) { using std::exp; return...
; A166866: Mixed fractal sequence mf(n). Mix fractals A158405, A002260. ; 1,1,1,3,1,2,1,3,5,1,2,3,1,3,5,7,1,2,3,4,1,3,5,7,9,1,2,3,4,5,1,3,5,7,9,11,1,2,3,4,5,6,1,3,5,7,9,11,13,1,2,3,4,5,6,7,1,3,5,7,9,11,13,15,1,2,3,4,5,6,7,8,1,3,5,7,9,11,13,15,17,1,2,3,4,5,6,7,8,9 mul $0,4 add $0,2 mov $1,1 lpb $0 sub $0,$1 add $1,...
/*++ Copyright (c) 2020 Microsoft Corporation Module Name: q_mbi.cpp Abstract: Model-based quantifier instantiation plugin Author: Nikolaj Bjorner (nbjorner) 2020-09-29 --*/ #include "ast/ast_trail.h" #include "ast/ast_util.h" #include "ast/for_each_expr.h" #include "ast/rewriter/var_subst.h" #inclu...
/*************************************************************************/ /* particles_2d.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1989 -- All Rights Reserved PROJECT: PC GEOS MODULE: Calendar/Repeat FILE: repeatGenerate.asm AUTHOR: Don Reeves, November 20, 1989 ROUTINES: Name Description ---- ----------- REVISION H...
; A135593: Number of n X n symmetric (0,1)-matrices with exactly n+1 entries equal to 1 and no zero rows or columns. ; Submitted by Jon Maiga ; 2,9,36,140,540,2142,8624,35856,152280,666380,2982672,13716144,64487696,310693320,1528801920,7691652992,39474925344,206758346256,1103332900160,5999356762560,33197323465152,18692...
/* Runtime ABI for the ARM Cortex-M0 * idiv.S: signed 32 bit division (only quotient) * idivmod.S: signed 32 bit division (quotient and remainder) * uidivmod.S: unsigned 32 bit division * * Copyright (c) 2012 Jörg Mische <bobbl@gmx.de> * * Permission to use, copy, modify, and/or distribute this software for any ...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: ResEdit FILE: documentKeyboard.asm AUTHOR: Cassie Hartzong, Mar 2, 1993 ROUTINES: Name Description ---- ----------- EXT DocumentKb...
%ifdef CONFIG { "RegData": { "MM0": "0x4142434445467778", "MM1": "0x4142434477784748", "MM2": "0x4142777845464748", "MM3": "0x7778434445464748", "MM4": "0x4142434445467778", "MM5": "0x4142434477784748", "MM6": "0x4142777845464748", "MM7": "0x7778434445464748" }, "MemoryRegions": { ...
; A332409: a(n) = n!! mod Fibonacci(n). ; Submitted by Jamie Morken(w1) ; 0,0,1,2,0,0,1,6,27,45,71,0,228,73,605,861,956,2376,1199,5235,7137,5017,21617,40320,49250,72900,94129,253071,125204,188760,786046,1041600,3306329,2717231,8692580,4869072,10661888,33618132,14333453,66880275,110783982 add $0,1 mov $1,1 mov $2,$0 se...
; void qsort_callee(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *)) SECTION code_clib SECTION code_stdlib PUBLIC __quicksort__callee, l0__quicksort__callee EXTERN asm_quicksort __quicksort__callee: pop af pop bc pop hl pop de exx pop bc push af l0__quicksort...
/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor * ...
; Randomizer seed data rando_seed_data: ; $00 dw $0000 ; Player Id ; $02 dw $0000 ; Seed bitfield ; $04-$0f dw $0000, $0000, $0000, $0000, $0000, $0000 ; Future use ; $10-2f db "0233d47a92d14217ac52e932ffc684dd" ; Seed GUID ; $30-4f db "adaa377c2adb4ea0b2d7a9741d96...
/* CirKit: A circuit toolkit * Copyright (C) 2009-2015 University of Bremen * Copyright (C) 2015-2017 EPFL * * 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, in...
/** * @file * * Unless noted otherwise, the portions of Isis written by the USGS are public * domain. See individual third-party library and package descriptions for * intellectual property information,user agreements, and related information. * * Although Isis has been used by the USGS, no warranty, ex...
.text .file "gobmk.owl_vital_apat.autohelperowl_vital_apat34.ll" .hidden autohelperowl_vital_apat34 .globl autohelperowl_vital_apat34 .align 16 .type autohelperowl_vital_apat34,@function autohelperowl_vital_apat34: // @autohelperowl_vital_apat34 // BB#0: { r4 = r1 r1:0 = combine(#0, r2) r3 =...
/* * ElevationMapping.cpp * * Created on: Nov 12, 2013 * Author: Péter Fankhauser * Institute: ETH Zurich, ANYbotics */ #include "elevation_mapping/ElevationMapping.hpp" // Elevation Mapping #include "elevation_mapping/ElevationMap.hpp" #include "elevation_mapping/sensor_processors/StructuredLightSensorP...
; ; Copyright (c) 2019, k4m1 <k4m1@protonmail.com> ; All rights reserved. Read /LICENSE for full license agreement. ; ; This file contains code responsible of enabling A20, and ; then proceeding to call loader_main ; loader_entry: pop dx mov sp, 0x9c00 mov bp, sp mov byte [boot_device], dl call enable_a20_with...
; ================================ KLC3 ENTRY CODE ================================ ; This piece of code serves as the entry point to your PRINT_SLOT subroutine. ; The test index is stored at x2700, which is loaded into R1 before calling your subroutine. .ORIG x3000 LDI R1, KLC3_TEST_INDEX_ADDR JSR PRINT_SLOT HALT ...
// // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <qt/qrimagewidget.h> #include <qt/guiutil.h> #include <QApplication> #include <QClipboard> #include <QDrag> #include <QMenu> #include <QMimeData> #include <QMouseEve...
/****************************************************************************** ** ** Copyright (C) 2009-2011 Kyle Lutz <kyle.r.lutz@gmail.com> ** All rights reserved. ** ** This file is a part of the chemkit project. For more information ** see <http://www.chemkit.org>. ** ** Redistribution and use in source and binar...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r15 push %r8 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0xf830, %r15 nop nop nop nop nop add %rbp, %rbp movw $0x6162, (%r15) nop add %r8, %r8 lea addresses_UC_ht+0xd830, %r11 nop nop nop inc %rdx mov $0x616263646566676...
; ;================================================================================================== ; N8 STANDARD CONFIGURATION ;================================================================================================== ; ; THE COMPLETE SET OF DEFAULT CONFIGURATION SETTINGS FOR THIS PLATFORM ARE FOUND ...
// 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 writing, software // distributed und...
// Copyright 2019 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 "components/password_manager/core/browser/multi_store_password_save_manager.h" #include "components/autofill/core/common/gaia_id_hash.h" #includ...
MonMenuOptions: ; category, item, value; actions are in PokemonActionSubmenu (see engine/pokemon/mon_menu.asm) ; moves dbbw MONMENU_FIELD_MOVE, MONMENUITEM_CUT, CUT dbbw MONMENU_FIELD_MOVE, MONMENUITEM_FLY, FLY dbbw MONMENU_FIELD_MOVE, MONMENUITEM_SURF, SURF dbbw MONMENU_FIELD_MOVE, MONMENUITEM_...
; A065310: Number of occurrences of n-th prime in A065308, where A065308(j) = prime(j - pi(j)). ; 3,2,2,1,1,2,2,1,1,2,2,1,1,2,1,1,1,1,2,2,1,1,1,1,2,1,1,2,2,1,1,2,1,1,1,1,2,1,1,1,1,2,2,1,1,1,1,2,1,1,2,2,1,1,1,1,2,1,1,2,1,1,1,1,2,1,1,1,1,1,1,2,1,1,2,2,1,1,2,2,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,2,1,1,1,1,2,2,1,1,1,1,1,1,...
// -*- C++ -*- #include "ace/OS_NS_sys_time.h" #include "ace/High_Res_Timer.h" ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE ACE_Time_Value_T<ACE_System_Time_Policy> ACE_System_Time_Policy::operator()() const { return ACE_Time_Value_T<ACE_System_Time_Policy> (ACE_OS::gettimeofday()); } ACE_INLINE void ...
<% import collections import pwnlib.abi import pwnlib.constants import pwnlib.shellcraft import six %> <%docstring>reserved221(vararg_0, vararg_1, vararg_2, vararg_3, vararg_4) -> str Invokes the syscall reserved221. See 'man 2 reserved221' for more information. Arguments: vararg(int): vararg Returns: long <...
global outb global inb ; outb - send a byte to an I/O port ; inputs: ; [esp + 8] data byte (1 byte) ; [esp + 4] I/O port (2 bytes) ; [esp + 0] return address ; modifies: ; al (byte to write) ; dx (port to write to) outb: mov al, [esp + 8] mov dx, [esp + 4] out dx, al ; send data to IO port ret ; inb ...
; A021078: Decimal expansion of 1/74. ; 0,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5 mul $0,2 trn $0,1 mod $0,6
############################################################################### # 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...
; A001621: a(n) = n*(n + 1)*(n^2 + n + 2)/4. ; 0,2,12,42,110,240,462,812,1332,2070,3080,4422,6162,8372,11130,14520,18632,23562,29412,36290,44310,53592,64262,76452,90300,105950,123552,143262,165242,189660,216690,246512,279312,315282,354620,397530,444222,494912,549822,609180,673220,742182,816312,895862,981090,1072260,116...
WWIDTH =40 WTOP =10 WLEFT =15 WBOTTOM =20 WRIGHT =WLEFT+WWIDTH-1 CODE SEGMENT ASSUME CS:CODE START: MOV AL,0 MOV AH,5 INT 10H MOV CH,WTOP MOV CL,WLEFT MOV DH,WBOTTOM MOV DL,WRIGHT MOV ...
Name: zel_main.asm Type: file Size: 45780 Last-Modified: '2016-05-13T04:23:03Z' SHA-1: 1A770E2B40E26DA1350F709A32CA1953C80B034C Description: null
;;============================================================================ ;; MCKL/lib/asm/logf.asm ;;---------------------------------------------------------------------------- ;; MCKL: Monte Carlo Kernel Library ;;---------------------------------------------------------------------------- ;; Copyright (c) 2013-...
; Z88 Small C+ Run time Library ; Moved functions over to proper libdefs ; To make startup code smaller and neater! ; ; 23/1/2001 djm SECTION code_clib SECTION code_l_sccz80 PUBLIC l_pint_pop, l_pint_pop_pint l_pint_pop: pop bc ; return address pop de ...
SECTION code_clib SECTION code_fp_math48 PUBLIC asm_tan EXTERN am48_tan defc asm_tan = am48_tan
SECTION code_clib SECTION code_fp_math48 PUBLIC _ceil EXTERN cm48_sdcciy_ceil defc _ceil = cm48_sdcciy_ceil
/* Copyright 2017 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...
/* * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved. * * NVIDIA CORPORATION and its licensors retain all intellectual property * and proprietary rights in and to this software, related documentation * and any modifications thereto. Any use, reproduction, disclosure or * distribution of this so...
section .realmode global rm_int rm_int: ; Self-modifying code: int $int_no mov al, byte [esp+4] mov byte [.int_no], al ; Save out_regs mov eax, dword [esp+8] mov dword [.out_regs], eax ; Save in_regs mov eax, dword [esp+12] mov dword [.in_regs], eax ; Save GDT in case BIOS ov...
; unsigned long cpm_get_offset(void *p) ; fastcall SECTION code_clib SECTION code_arch PUBLIC cpm_get_offset EXTERN asm_cpm_get_offset defc cpm_get_offset = asm_cpm_get_offset
; A291050: Decimal expansion of Pi^2 / 27. ; Submitted by Christian Krause ; 3,6,5,5,4,0,9,0,3,7,4,4,0,5,0,3,1,9,2,1,6,0,9,2,2,5,9,2,5,4,6,7,2,2,6,4,2,7,0,8,7,7,7,5,5,8,2,3,7,3,2,9,8,6,1,6,3,4,5,7,3,8,4,3,0,4,4,4,6,1,0,4,5,3,4,0,4,4,6,3,8,6,2,9,6,9,5,3,1,1,2,4,8,8,3,5,2,6,7,8 mov $1,1 mov $2,1 mov $3,$0 mul $3,5 sub $...
/* * This test verifies that basic instructions * (data transfers, addition/subtraction, jumps) work. */ lc r100, 0x10000000 // test result output pointer lc r101, halt lc r102, bad_jump lc r103, reg_is_nonzero // Check that all registers are zero-initialized after reset // Ignore r100-r103 which are already ...
SECTION rodata_font_fzx PUBLIC _ff_dkud1_Sinclair _ff_dkud1_Sinclair: BINARY "font/fzx/fonts/dkud1/Sinclair/sinclair.fzx"
COMMENT @---------------------------------------------------------------------- Copyright (c) GeoWorks 1989 -- All Rights Reserved PROJECT: PC GEOS MODULE: MOUSE DRIVER -- Microsoft Bus Mouse (non-8255 version) device-dependent code FILE: msbus.asm AUTHOR: Adam de Boor ROUTINES: Name Descript...
############################################################################### # 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...
; boot sector that enters 32 - bit protected mode. [org 0x7c00] KERNEL_OFFSET equ 0x1000 mov [BOOT_DRIVE], dl ; BIOS stores our boot drive in DL , so it 's ; best to remember this for later. mov bp, 0x9000 mov sp, bp mov bx, MSG_REAL_MODE ;to print a message on screen, store message in BX Register call print_stri...
// Copyright (C) 2003, Fernando Luis Cacciola Carballal. // // Use, modification, and distribution is subject to 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/optional for documentation. // // Yo...
; A314218: Coordination sequence Gal.5.304.2 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,5,11,17,22,28,33,39,45,50,55,61,67,72,78,83,89,95,100,105,111,117,122,128,133,139,145,150,155,161,167,172,178,183,189,195,200,205,211,217,...
; ; ZX IF1 & Microdrive functions ; ; int i1_from_mdv() ; ; returns TRUE if the current program ; has been loaded from the microdrive ; ; $Id: if1_from_mdv.asm,v 1.4 2017/01/03 01:40:06 aralbrec Exp $ ; SECTION code_clib PUBLIC if1_from_mdv PUBLIC _if1_from_mdv if1_from_mdv: _if1_from_mdv: ld de,($5c53) ;...
// 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 "chrome/browser/engagement/site_engagement_helper.h" #include <utility> #include "base/bind.h" #include "base/stl_util.h" #include "base/time/t...
;; ;; Copyright (c) 2012-2018, 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...
global _start section .text _start: mov rax,0x10111011 mov rbx,0x11010110 and rax,rbx mov rax, 60 mov rdi, 10 syscall section .data
; A141044: Two 2's followed by all 1's. ; 2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 div $0,2 pow $1,$0 add $1,1 mov $0,$1
;******************************************************************************* ; MSP430x24x Demo - USCI_A0, SPI Interface to HC165 Shift Register ; ; Description: This program demonstrate a USCI_A0 in SPI mode interface to a ; an 'HC165 shift register. Read 8-bit Data from H-A into Data. ; ACLK = n/a, M...
; SKKU Microprocessor HW3 of x86, by Yoseob Kim(2015312229) [org 0x7c00] ; Assembly command ; Let NASM compiler know starting address of memory ; BIOS reads 1st sector and copied it on memory address 0x7c00 [bits 16] ; Assembly command ; Let NASM compiler know that this code consists of 16its [SECTI...
; ; Small C z88 File functions ; Written by Dominic Morris <djm@jb.man.ac.uk> ; ; 11/3/99 djm ***UNTESTED*** ; ; *** THIS IS A Z88 SPECIFIC ROUTINE!!! *** ; ; ; $Id: fdtell.asm,v 1.7 2016/03/06 20:36:12 dom Exp $ ; INCLUDE "fileio.def" SECTION code_clib PUBLIC fdt...
<% from pwnlib.shellcraft.aarch64.linux import syscall %> <%page args="pid, stat_loc, options"/> <%docstring> Invokes the syscall waitpid. See 'man 2 waitpid' for more information. Arguments: pid(pid_t): pid stat_loc(int): stat_loc options(int): options </%docstring> ${syscall('SYS_waitpid', pid...
// code concerning the game over mode // states of the game over mode .const STEP_FILLWELL = 0 .const STEP_CLEARWELL = 1 .const STEP_GAMEOVERTEXT = 2 // ------------------------------------------------ StartGameOverMode: // play game over music lda #0 sta sounddelayCounter lda #SND_MUSIC_GAMEOVER jsr playsound...
#include "Server.h" #include <Network/NetworkDriver.h> #include <stdexcept> #include "Utilities/Utils.h" #include "Utilities/Config.h" #include "Protocol/Play.h" #include "Internal/InternalServer.h" #include <iostream> namespace Minecraft::Server { Server::Server() { m_IsRunning = false; socket = nullptr; } ...
#include <stdexcept> // std::domain_error() #include "igs_resource_msg_from_err.h" #include "igs_resource_thread.h" //-------------------------------------------------------------------- // pthread_t = unsigned long int(rhel4) /* state が PTHREAD_CREATE_JOINABLE なら、pthread_join()を呼ぶこと。 PTHREAD_...
SECTION code_fcntl PUBLIC asm_tty_execute_action EXTERN l_jphl asm_tty_execute_action: ; helper function for output consoles ; execute actions demanded by tty ; ; enter : hl = & action_table ; de = & parameters ; ; if producing nothing for the terminal ; ; a = ...
; ******************************************************************************************* ; ******************************************************************************************* ; ; Name : start.asm ; Purpose : Test bed for BASIC ; Date : 3rd June 2019 ; Author : paul@robsons.org.uk ; ; *************...
; A169302: Number of reduced words of length n in Coxeter group on 49 generators S_i with relations (S_i)^2 = (S_i S_j)^29 = I. ; 1,49,2352,112896,5419008,260112384,12485394432,599298932736,28766348771328,1380784741023744,66277667569139712,3181328043318706176,152703746079297896448,7329779811806299029504,351829430966702...
; carrega x"FF" em S (todos pxs em '1') leaw $0, %A movw %A, %S notw %S leaw $R1, %A movw %S, (%A) leaw $18954, %A movw %A, %S WHILE: leaw $R1, %A movw (%A), %D movw %S, %A movw %D, (%A) leaw $20, %A movw %S,%D addw %D, %A ,%S leaw $19274, %A subw %A, %S, %D leaw $WHILE, %A jg %D nop
; A020657: Lexicographically earliest increasing sequence of nonnegative numbers that contains no arithmetic progression of length 7. ; Submitted by Simon Strandgaard ; 0,1,2,3,4,5,7,8,9,10,11,12,14,15,16,17,18,19,21,22,23,24,25,26,28,29,30,31,32,33,35,36,37,38,39,40,49,50,51,52,53,54,56,57,58,59,60,61,63,64,65,66,67,6...
; --------------------------------------------------------------------------- ; Sprite mappings - invisible solid blocks ; --------------------------------------------------------------------------- dc.w byte_114BC-Map_obj71 dc.w byte_114D1-Map_obj71 dc.w byte_114E6-Map_obj71 byte_114BC: dc.b 4 dc.b $F0, 5, 0, ...
TOESP_MSG_GET_ESP_STATUS = 0 ; Get ESP status TOESP_MSG_DEBUG_GET_LEVEL = 1 ; Get debug level TOESP_MSG_DEBUG_SET_LEVEL = 2 ; Set debug level TOESP_MSG_DEBUG_LOG = 3 ; Debug / Log data TOESP_MSG_CLEAR_BUFFERS = 4 ; Clear RX/TX buffers TOESP_MSG_E2N_BU...
// Write an 8085 assembly language program to multiply two 16-bit binary numbers LHLD 9000 SPHL LHLD 9002 XCHG LXI H,0000 LXI B,0000 LOOP: DAD SP JNC NOCARRY INX B NOCARRY: DCX D MOV A,E ORA D JNZ LOOP SHLD 9100 MOV L,C MOV H,B SHLD 9102 HLT
; A288156: Two even followed by three odd integers: the pattern is (0+2k,0+2k,1+2k,1+2k,1+2k) for k>=0. ; 0,0,1,1,1,2,2,3,3,3,4,4,5,5,5,6,6,7,7,7,8,8,9,9,9,10,10,11,11,11,12,12,13,13,13,14,14,15,15,15,16,16,17,17,17,18,18,19,19,19,20,20,21,21,21,22,22,23,23,23,24,24,25,25,25,26,26,27,27,27,28,28,29,29,29,30,30,31,31,31...
#ifndef sigmoid_h #define sigmoid_h #include "common.hpp" vector<float> Sigmoid(vector<float> v); #endif
#include <iostream> using namespace std; class Rat { private: int nom, denom; public: void init (int nom, int denom) { this->nom = nom; if (denom != 0) this->denom = denom; else denom = 1; } void read () { int n,d; cout << "Enter nominator:"; cin >> n; cout << "Enter denominator:"; cin >...
.data bl: .asciiz "\n" number: .word 0 fatorial: .word 0 text0: .asciiz "Digite o numero para calcular o fatorial: " text1: .asciiz "Serio?" text2: .asciiz "O fatorial e: 1" text3: .asciiz "O fatorial e: " .text main: # Line 4 - Output la $a0, text0 jal printText jal breakLine # Line 5 - Input jal use...
; /* ; * Provide SSE luma and chroma mc functions for HEVC decoding ; * Copyright (c) 2013 Pierre-Edouard LEPERE ; * ; * This file is part of FFmpeg. ; * ; * FFmpeg 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 Free Softwa...
/* RFC - KListBox.cpp Copyright (C) 2013-2019 CrownSoft This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, includ...
#include <iostream> int main() { std::cout << " a = ? "; int a{}; std::cin >> a; std::cout << " b = ? "; int b{}; std::cin >> b; std::cout << "\n"; std::cout << " a + b = " << (a + b) << "\n"; std::cout << " a - b = " << (a - b) << "\n"; std::cout << " a * b = " << (a * b) << "\n"; std::cout <<...
;Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/ ; ; 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 ...
; A077999: Expansion of (1-x)/(1-2*x-2*x^3). ; Submitted by Jamie Morken(s4) ; 1,1,2,6,14,32,76,180,424,1000,2360,5568,13136,30992,73120,172512,407008,960256,2265536,5345088,12610688,29752448,70195072,165611520,390727936,921846016,2174915072,5131286016,12106264064,28562358272,67387288576,158987105280,375098927104,88497...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: flyteidl/admin/execution.proto #include "flyteidl/admin/execution.pb.h" #include <algorithm> #include <google/protobuf/stubs/common.h> #include <google/protobuf/io/coded_stream.h> #include <google/protobuf/extension_set.h> #include <google/protob...
j end add $t1, $0, $t0
%include "../utils/printf32.asm" ; global initialized variables ; perm: rw- section .data var_byte db 'A' ; db = define byte (8b, ex: char var_byte = 'A') var_byte1 db 0x41 ; same as above var_byte2 db 65 ; same as above var_word dw 10 ; dw = define word (16b, ex: short var_word = 10) ...
class Solution { public: bool containsDuplicate(vector<int>& nums) { if(nums.size() <= 1) return false; sort(nums.begin(), nums.end()); for(int i = 1; i < nums.size(); ++i) { if(nums[i] == nums[i-1]) { return true; } } return false; ...
map_header Route25, ROUTE_25, OVERWORLD, WEST connection west, Route24, ROUTE_24, 0 end_map_header
// (C) Copyright Gennadiy Rozental 2005-2014. // Use, modification, and distribution are subject to 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/test for the library home page. // // File ...
; ; Z88 Graphics Functions - Small C+ stubs ; ; Written around the Interlogic Standard Library ; ; Stubs Written by D Morris - 15/10/98 ; ; ; Page the graphics bank in/out - used by all gfx functions ; Simply does a swap... ; ; ; $Id: swapgfxbk.asm,v 1.5 2017-01-02 22:57:59 aralbrec Exp $ ...
/* * Automatically Generated from Mathematica. * Fri 5 Nov 2021 09:03:12 GMT-04:00 */ #ifndef JS_Y_TIME_LEFTSTANCE_HH #define JS_Y_TIME_LEFTSTANCE_HH namespace frost { namespace gen { void Js_y_time_LeftStance(double *p_output1, const double *var1); } } #endif // JS_Y_TIME_LEFTSTANCE_HH
// Copyright 2016 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 <chrome/browser/ash/app_mode/arc/arc_kiosk_app_launcher.h> #include <memory> #include <string> #include "chrome/browser/ui/app_list/arc/arc_app...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r8 push %r9 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0xbc23, %r12 clflush (%r12) nop nop nop dec %r9 vmovups (%r12), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $0, %xmm4, %rbx nop nop nop add $24566, %r14 lea addresses_...
;; ;; Copyright (c) 2020-2021, 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...
; A212823: Number of 0..2 arrays of length n with no adjacent pair equal to its immediately preceding adjacent pair, and new values introduced in 0..2 order. ; Submitted by Jon Maiga ; 1,2,5,12,33,90,246,672,1836,5016,13704,37440,102288,279456,763488,2085888,5698752,15569280,42536064,116210688,317493504,867408384,23698...
#pragma once //------------------------------------------------------------------------------ // // Copyright 2018-2019 Fetch.AI Limited // // 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 Licen...