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
| str = input() | |
| inpt = "" | |
| n = int(str) | |
| x = 0 | |
| for i in range(n): | |
| inpt = input() | |
| if(inpt[0:2] == "++" or inpt[1:3] == "++"): | |
| x += 1 | |
| elif(inpt[0:2] == "--" or inpt[1:3] == "--"): | |
| x -= 1 |
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 <algorithm> | |
| using namespace std; | |
| int countzero(const string in) | |
| { | |
| int count = 0; | |
| for(int i=0; i<in.length(); i++) | |
| { | |
| if(in[i] == '0') |
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 <cstdlib> | |
| #include <cmath> | |
| #include <string> | |
| using namespace std; | |
| void drawTriangle(int); | |
| void printNum(int); | |
| int digitSum(int); | |
| int sumDigit(int); |
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 <cstdlib> | |
| #include "linkedlist.hpp" | |
| using namespace std; | |
| template<class T> | |
| void cut(LinkedList<T> *&list, int percent); | |
| template<class T> | |
| void shuffle(LinkedList<T> *&list, int percent); |
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
| # nginx server block example | |
| server { | |
| listen 80; | |
| server_name localhost; | |
| set $root_path 'html/Scrum-Framework/scrumframework/public'; | |
| root $root_path; | |
| index index.php index.html index.htm; |
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
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| " set the runtime path to include Vundle and initialize | |
| set rtp+=~/vimfiles/bundle/Vundle.vim/ | |
| let path='~/vimfiles/bundle' | |
| call vundle#begin(path) | |
| " let Vundle manage Vundle, required |
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
| def testgen(total_num): | |
| return len(total_num) == len(set(total_num)) | |
| def test_z(generator_num, n): | |
| bag = [] | |
| for i in range(1, n): | |
| t = pow(generator_num, i, n) | |
| bag.append(t) | |
| return testgen(bag) |
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
| .global main | |
| .text | |
| main: | |
| push %rbp | |
| mov %rsp, %rbp | |
| sub $104, %rsp | |
| xor %rax, %rax | |
| cmp $1, %rax |
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 nginx_home %{_localstatedir}/cache/nginx | |
| %define nginx_user nginx | |
| %define nginx_group nginx | |
| %define nginx_loggroup adm | |
| %define modsec_version 2.9.0 | |
| # distribution specific definitions | |
| %define use_systemd (0%{?fedora} && 0%{?fedora} >= 18) || (0%{?rhel} && 0%{?rhel} >= 7) || (0%{?suse_version} == 1315) |
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
| <html> | |
| <head> | |
| <title> | |
| Triangle Type Resolver | |
| </title> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css"> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/snap.svg/0.4.1/snap.svg-min.js"></script> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> | |
| </head> |
OlderNewer