This file contains 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
; Data una matrice quadrata di interi a 16bit, stampi a video "Vero" se la somma degli elementi della diagonale principale di M coincide con | |
; la somma degli elementi della diagonale secondaria e stampi "Falso" altrimenti. | |
section .data | |
M dw 7,15,3,10,4,2,1,11,7,2,0,56,1,21,4,5 | |
dim equ $-M | |
N equ 4 | |
V db "Vero", 10 | |
dim_V equ $-V | |
F db "Falso", 10 | |
dim_F equ $-F |
This file contains 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
/* | |
* Domenico Luciani | |
* [email protected] | |
* Olimex Weekend Challenge #21 Words Puzzle | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <time.h> |
This file contains 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 <stdio.h> | |
#include <stdlib.h> | |
int accoppiata(int **M,int g) | |
{ | |
int n,i, | |
somma_r = 0, | |
somma_c = 0; | |
for(n=0; n < g; n++) |
This file contains 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 <stdio.h> | |
#include <stdlib.h> | |
#define MAX 10 | |
typedef struct ABR | |
{ | |
int label; | |
struct ABR *sx,*dx; | |
}ABR; |
This file contains 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 <stdio.h> | |
#include <stdlib.h> | |
typedef struct lista | |
{ | |
int dato; | |
struct lista *next; | |
}lista; | |
lista* crea(lista* p,int n) |
This file contains 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 <stdio.h> | |
#include <stdlib.h> | |
void stampa_M(int **M,int g) | |
{ | |
int i,j; | |
puts("\n -- Stampa --"); | |
for(i=0; i < g; i++) | |
{ |
This file contains 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
/* | |
* Compito d'esame: | |
* Autore: Domenico Luciani | |
* Scrivere un programma che legga da tastiera una mat rice quadrata binaria. | |
* Scrivere una funzione in C che stabilisca se la matrice è costituita da cornici di zero che si | |
* alternano rispettivamente a partire dalla cornice esterna composta da tutti zero. | |
* Es: Le matrici | |
* 1 1 1 1 1 1 1 e 0 0 0 0 0 | |
* 1 0 0 0 0 0 1 0 1 1 1 0 | |
* 1 0 1 1 1 0 1 0 1 1 1 0 |
This file contains 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
/* | |
Si crei un file di testo di nome vettore.txt contenente nella prima riga un intero positivo N e nelle consecutive N righe un intero. | |
Si crei un array dinamico V di dimensione N contenente gli N interi definiti nelle ultime N righe del file. | |
--------------------------------------------DONE------------------------------------------------------------ | |
Si costruisca l’albero binario di ricerca A contenente gli interi del vettore V inserendoli da quello in posizione 0 a quello in posizione N-1. | |
-------------------------------------------DONE------------------------------------------------------------------------------------------------ | |
Si scriva una funzione ricorsiva che, dato l’ albero binario di ricerca A e un intero k,restituisca il numero di nodi di A con etichetta maggiore di k. | |
Tale funzione deve restituire utilizzando le proprietà dell’ABR, ovvero evitando di esaminare tutti i nodi dell’albero. | |
------------------------------------------DONE--------------------------------------------------------------- |
This file contains 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
xrandr --output HDMI-1 --mode 1360x768 --right-of LVDS-1 |
This file contains 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
#!/bin/bash | |
# Autori: | |
# | |
# P @Pinperepette | |
# H @HackerRedenti | |
# # @b4d_tR1p | |
# 0 @Th3Zer0 | |
# S @Stabros | |
######################################################################### |