Skip to content

Instantly share code, notes, and snippets.

View koras's full-sized avatar
🏠
Working from home

Константин koras

🏠
Working from home
View GitHub Profile

Обращение списка

Написать (на любом языке функцию), которая обращает список.

NB: Решения через array_reverse, array_map и прочие array_штуковины не принимаются.

Пример на php:

php
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "ItemSample.h"
#include "ItemSampleCharacter.h"
#include "ItemSampleProjectile.h"
#include "Animation/AnimInstance.h"
#include "UsableItem.h"
#include "GameFramework/InputSettings.h"
DEFINE_LOG_CATEGORY_STATIC(LogFPChar, Warning, All);
<div class="uremont_button" style="
position: fixed;
top: 0;
width: 100%;
left: 0;
line-height: 3em;
text-align: center;
"><a href="#" style="
background: #f7931e;
color: #fff;
[
[
'value' => strlen($inData['name']),
'etalon' => 64,
'code_error' => 1,
'mode' => "<=",
'error_text' => "Длина имени файла более 32 символов",
],
[
'value' => $sizeMB,
anonymous function) @ BidsSKList.jsx:411
(anonymous function) @ BidsSKList.jsx:405
render @ BidsSKList.jsx:328
(anonymous function) @ ReactCompositeComponent.js:796
measureLifeCyclePerf @ ReactCompositeComponent.js:75
_renderValidatedComponentWithoutOwnerOrContext @ ReactCompositeComponent.js:795
_renderValidatedComponent @ ReactCompositeComponent.js:822
_updateRenderedComponent @ ReactCompositeComponent.js:746
_performComponentUpdate @ ReactCompositeComponent.js:724
updateComponent @ ReactCompositeComponent.js:645
[2017.04.10-20.47.50:326][ 0]Log file open, 04/10/17 23:47:50
[2017.04.10-20.47.50:326][ 0]LogInit:Display: Running engine for game: MMRTest
[2017.04.10-20.47.50:326][ 0]LogPlatformFile: Not using cached read wrapper
[2017.04.10-20.47.50:326][ 0]LogInit:Display: RandInit(196103050) SRandInit(196103052).
[2017.04.10-20.47.50:326][ 0]LogTaskGraph: Started task graph with 4 named threads and 7 total threads.
[2017.04.10-20.47.50:326][ 0]LogStats: Stats thread started at 0.083761
[2017.04.10-20.47.50:326][ 0]LogInit: Version: 4.10.4-2872498+++depot+UE4-Releases+4.10
[2017.04.10-20.47.50:326][ 0]LogInit: API Version: 2758231
[2017.04.10-20.47.50:326][ 0]LogInit: Compiled (64-bit): Feb 18 2016 15:47:04
[2017.04.10-20.47.50:326][ 0]LogInit: Compiled with Visual C++: 19.00.23026.00
[2017.04.17-22.50.13:063][ 0]LogMemory: 32768 15 16 29 80 21865 31980 928K 32K 217K 77.40%
[2017.04.17-22.50.13:064][ 0]LogMemory:
[2017.04.17-22.50.13:064][ 0]LogMemory: 27072K allocated in pools (with 4757K slack and 1917K waste). Efficiency 92.92%
[2017.04.17-22.50.13:064][ 0]LogMemory: Allocations 105691 Current / 3477649 Total (in 423 pools)
[2017.04.17-22.50.13:065][ 0]LogMemory:
[2017.04.17-22.50.13:068][ 0]LogLinker:Warning: CreateImport: Failed to load Outer for resource 'WidgetTree': WidgetBlueprint /Script/UMGEditor.Default__WidgetBlueprint
[2017.04.17-22.50.13:095][ 0]LogModuleManager:Warning: ModuleManager: Module 'GameplayDebugger' not found - its StaticallyLinkedModuleInitializers function is null.
[2017.04.17-22.50.13:096][ 0]LogAIModule: Creating AISystem for world Start1
[2017.04.17-22.50.13:097][ 0]LogWorld: Game class is 'StartGameMode_C'
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: Creating makefile for Last (no existing makefile)
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: Performing full C++ include scan (no include cache file)
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: Parsing headers for Last
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: Running UnrealHeaderTool "E:\UE4\4.10\ZIP\Last\Last.uproject" "E:\UE4\4.10\ZIP\Last\Intermediate\Build\Win64\Last\Shipping\UnrealHeaderTool.manifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -rocket -installed
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: Reflection code generated for Last in 5,6618075 seconds
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: Performing 6 actions (4 in parallel)
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: PCH.UELinkerFixupsName.h.cpp
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: PCH.Last.h.cpp
M
FrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2017.05.03-21.01.36:285][ 0]LogInit:Display: LogUObjectGlobals:Warning: Failed to find object 'Object None.TouchToMoveArrow'
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2017.05.03-21.01.36:285][ 0]LogInit:Display: LogUObjectGlobals:Warning: Failed to find object 'Object None.SM_Bats'
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2017.05.03-21.01.36:285][ 0]LogInit:Display: LogUObjectGlobals:Warning: Failed to find object 'Object None.SM_SelectionMesh_01'
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2017.05.03-21.01.36:286][ 0]LogInit:Display: LogUObjectGlobals:Warning: Failed to find object 'Object None.SM_SnowBoulder'
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2017.05.03-21.01.36:286][ 0]LogInit:Display: LogUObjectGlobals:Warning: Failed to find object 'Object None.SM_Debris_Box_RadialFull'
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2017.05.03-21.