Skip to content

Instantly share code, notes, and snippets.

(defparameter *player-health* nil)
(defparameter *player-agility* nil)
(defparameter *player-strength* nil)
(defparameter *monsters* nil)
(defparameter *monster-builders* nil)
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!
#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){
@velengel
velengel / PCK2014-5.cpp
Created August 10, 2015 13:12
PCK2014予選問5 Wrong Answer tc(3/24)
#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;
module Hands
(Hand
, toHand, fromHand
) where
import Cards
import Data.List
import Control.Monad
newtype Hand = Hand { fromHand :: [Card] } deriving (Show, Eq, Ord)
module Cards
( Suit(..)
, Card
, allCards
, cardSuit
, cardNumber) where
allCards :: [Card]
allCards = do
suit <- [Hearts ..]
module Main where
import Cards
import Random.Shuffle
import Data.List
main :: IO ()
main = do
shuffled <- shuffleM allCards
print . sort . take 5 shuffled
#include <iostream>
using namespace std;
int main(void){
// Here your code !
int a;
std::cin>>a;
std::cout<<a-10<<std::endl;
return 0;
}