Cod sursa(job #1764215)
| Utilizator | Data | 25 septembrie 2016 11:16:38 | |
|---|---|---|---|
| Problema | Patrate 3 | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.4 kb |
#include <stdio.h>
using namespace std;
struct punct{
int x, int y;
} v[1000];
int search(struct punct p){
int j;
for(j=liste[(p.x+p.y)%MOD];j!=0 && !(v[h[j]].x==p.x && v[h[j]].y==p.y);j=nxt[j]);
return j;
}
void add(int i){
h[a]
}
int main()
{
FILE *fi=fopen("patrate3.in", "r"), *fo=fopen("patrate3.out", "w");
fscanf(fi, "%d", &n);
for(i=0;i<n;i++){
fscanf(fi, "%d")
}
return 0;
}
