This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <tchar.h> | |
| int main() | |
| { | |
| int a[100][100]; | |
| FILE *f = fopen("spiral.in", "rt"); | |
| int n; | |
| fscanf(f, "%d", &n); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "stdafx.h" | |
| class m { }; | |
| class kg { }; | |
| class s { }; | |
| template<typename T, int pm, int pkg, int ps> | |
| class unit | |
| { | |
| public: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Drawing; | |
| using System.Drawing.Imaging; | |
| using System.Collections.Generic; | |
| using System.Collections.Specialized; | |
| using Microsoft.Glee.GraphViewerGdi; | |
| using Microsoft.Glee.Drawing; | |
| using Mono.Cecil; | |
| using Mono.Cecil.Cil; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <string> | |
| #include <vector> | |
| int gcd(int u, int v) { | |
| int t; | |
| while (v) { | |
| t = u; | |
| u = v; | |
| v = t % v; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.Linq; | |
| using System.Runtime.InteropServices; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace EG | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <functional> | |
| #include <iostream> | |
| #include <string> | |
| #include <vector> | |
| const int repetition_limit = 10; | |
| template<typename F> | |
| void do_times(size_t count, const F &f) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (* Content-type: application/vnd.wolfram.mathematica *) | |
| (*** Wolfram Notebook File ***) | |
| (* http://www.wolfram.com/nb *) | |
| (* CreatedBy='Mathematica 9.0' *) | |
| (*CacheID: 234*) | |
| (* Internal cache information: | |
| NotebookFileLineBreakTest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (* Content-type: application/vnd.wolfram.mathematica *) | |
| (*** Wolfram Notebook File ***) | |
| (* http://www.wolfram.com/nb *) | |
| (* CreatedBy='Mathematica 9.0' *) | |
| (*CacheID: 234*) | |
| (* Internal cache information: | |
| NotebookFileLineBreakTest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <tchar.h> | |
| #include <emmintrin.h> | |
| #include <xmmintrin.h> | |
| #include <smmintrin.h> | |
| #include <iostream> | |
| #include <chrono> | |
| __declspec(noinline) | |
| bool is_axial(__m128 vec) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define fatal(msg, ...) do \ | |
| { \ | |
| char message[512]; \ | |
| wsprintf(message, msg, __VA_ARGS__); \ | |
| MessageBox(NULL, message, "Fatal error", MB_OK); \ | |
| DebugBreak(); \ | |
| ExitProcess(-1); \ | |
| } while(false) | |
| #define assert(cond) do \ | |
| { \ |