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 <fstream> | |
| #include <iostream> | |
| #define FIN "algsort.in" | |
| #define FOUT "algsort.out" | |
| using namespace std; | |
| class Container { | |
| 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
| int main() { | |
| int n; | |
| ifstream fin( FIN ); | |
| ofstream fout( FOUT ); | |
| fin>>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 <fstream> | |
| #include <iostream> | |
| #define FIN "algsort.in" | |
| #define FOUT "algsort.out" | |
| class Container { | |
| public: | |
| //constructor of the class | |
| Container( int _n ): n( _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
| (function(){ | |
| var animating = false; | |
| function animatecard(ev) { | |
| if (animating === false) { | |
| var t = ev.target; | |
| if (t.className === 'but-nope') { | |
| t.parentNode.classList.add('nope'); | |
| animating = true; | |
| fireCustomEvent('nopecard', |
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
| /* Design of a card */ | |
| .card { | |
| font-size: 14px; | |
| line-height: 200px; | |
| text-align:center; | |
| width: 150px; | |
| height: 200px; | |
| display: block; | |
| background: #666; | |
| -webkit-transform-origin: 50% 99%; |
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
| /** | |
| * Filename: binarytreesearch.c | |
| * Copyright (c) 2016 Adrian Statescu (http://adrianstatescu.com) | |
| * Licensed under the MIT, GPL licenses. | |
| */ | |
| #include <stdio.h> | |
| #include <malloc.h> | |
| #define FIN "algsort.in" | |
| #define FOUT "algsort.out" |
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
| int **pp; | |
| int *p; | |
| int ii; | |
| p = ⅈ | |
| pp = &p; | |
| **pp = 2016; | |
| printf("%d", ii); //display 2016 |
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 <fstream> | |
| #include <vector> | |
| #define loop(vec) for(const auto &number : vec) | |
| #define iter(i,begin,end) for(int i = begin; i <= end; ++i) | |
| #define FIN "algsort.in" | |
| #define FOUT "algsort.out" | |
| using namespace std; |
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 <malloc.h> | |
| #define FIN "algsort.in" | |
| #define FOUT "algsort.out" | |
| int* read(int* arr, int* n) { | |
| int i, | |
| num; | |
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
| /** | |
| * | |
| * Author : Adrian Statescu mergesortv@gmail.com http://adrianstatescu.com | |
| * | |
| * C program to compute the value of PI using formula's Leibniz. | |
| * PI approximate 4 ( 1 - 1/3 + 1/5 - 1/7 + 1/9 - 1/11... | |
| * | |
| * MIT License | |
| * | |
| */ |