Skip to content

Instantly share code, notes, and snippets.

@marsharp
marsharp / gist:7157984
Created October 25, 2013 16:56
Задача про ферзей
#include <iostream>
//#include <fstream>
//#include <algorithm>
using namespace std;
int a[8][8];
int q;
void ferz(int i,int j)//закраска битых полей
{
int z;
for(z=0;z<8;z++)
#include <fstream>//qsort by marsharp
#include <iostream>
#include <algorithm>
using namespace std;
int a[100005];
void qsort(int l,int r)
{
int i,j,tmp=a[(r+l)/2];
if(r==l)return;
i=l;