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
| (defparameter *player-health* nil) | |
| (defparameter *player-agility* nil) | |
| (defparameter *player-strength* nil) | |
| (defparameter *monsters* nil) | |
| (defparameter *monster-builders* nil) |
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 | |
| set t_Co=256 | |
| colorscheme pablo | |
| source $VIMRUNTIME/vimrc_example.vim | |
| source $VIMRUNTIME/mswin.vim | |
| behave mswin | |
| set list | |
| set listchars=tab:>-,trail:. | |
| augroup highlightIdegraphicSpace | |
| autocmd! |
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 <cstdio> | |
| #include <cmath> | |
| typedef long long ll; | |
| ll x[1002], y[1002]; | |
| bool machine[1002] = {false}; | |
| int par[1002]; | |
| int rank[1002]; | |
| void init(int n){ | |
| for(int i = 0; i < n; ++i){ |
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<cstdio> | |
| #include<vector> | |
| #include<algorithm> | |
| int main(){ | |
| int N,M,p; | |
| std::cin >> N >> M >> p; | |
| std::vector<int> d; | |
| for(int i = 0; i < M; ++i){ | |
| int a; |
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
| module Hands | |
| (Hand | |
| , toHand, fromHand | |
| ) where | |
| import Cards | |
| import Data.List | |
| import Control.Monad | |
| newtype Hand = Hand { fromHand :: [Card] } deriving (Show, Eq, Ord) |
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
| module Cards | |
| ( Suit(..) | |
| , Card | |
| , allCards | |
| , cardSuit | |
| , cardNumber) where | |
| allCards :: [Card] | |
| allCards = do | |
| suit <- [Hearts ..] |
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
| module Main where | |
| import Cards | |
| import Random.Shuffle | |
| import Data.List | |
| main :: IO () | |
| main = do | |
| shuffled <- shuffleM allCards | |
| print . sort . take 5 shuffled |
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> | |
| using namespace std; | |
| int main(void){ | |
| // Here your code ! | |
| int a; | |
| std::cin>>a; | |
| std::cout<<a-10<<std::endl; | |
| return 0; | |
| } |