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
const NPD = 2 | |
const NPS = 2 | |
const NA = 2 | |
const C = 4 | |
const DX = 0 | |
const SX = 1 | |
range ID_A = 1..NA | |
range ID_D = 1..NPD |
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
vocale(a). | |
vocale(e). | |
vocale(i). | |
vocale(o). | |
vocale(u). | |
togli_vocali([],[]). | |
togli_vocali([X | Xs], Ys):- vocale(X), !, togli_vocali(Xs, Ys). | |
togli_vocali([X | Xs],[X | Ys]):- togli_vocali(Xs, Ys). |
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
const NS = 4 | |
const NUM = 3 | |
range Ids = 1..NS | |
const FALSE = 0 | |
const TRUE = 1 | |
range BOOL = FALSE..TRUE | |
const IDLE = 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
import java.util.ArrayList; | |
import java.util.List; | |
public class Soccorritori { | |
private static final int NUM = 4; // Numero soccorritori. | |
private static final int C = 3; // Capienza elicottero. | |
public static final int IDLE = 0; | |
public static final int SETTING = 1; | |
public static final int READY = 2; |
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
const NU = 2 | |
const ND = 2 | |
const NV = 2 | |
const UOMO = 0 | |
const DONNA = 1 | |
const VIP = 2 | |
range TYPE = UOMO..VIP | |
const FALSE = 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
//Marzorati Claudio | |
//726748 | |
public class Squadra { | |
private static int atleti=3,id; | |
public static void main(String[] args) { | |
Allenatore a = new Allenatore(); | |
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
//Marzorati Claudio | |
//726748 | |
const False = 0 | |
const True = 1 | |
range Boolean = False..True | |
const R = 3 | |
const N = 2 |
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
// Matteo Rolla | |
// matr. 730928 | |
import java.util.ArrayList; | |
import java.util.List; | |
public class Rolla730928 { | |
public static final int NUM = 2; | |
public static final int NUM_REMATE = 3; |
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
// Matteo Rolla | |
// matr. 730928 | |
const REM = 3 | |
const NUM = 2 | |
range Ids = 1..NUM | |
const FALSE = 0 | |
const TRUE = 1 | |
range BOOL = FALSE..TRUE |
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
// Matteo Rolla | |
// matr. 730928 | |
const NUM = 2 | |
range Ids = 1..NUM | |
const FALSE = 0 | |
const TRUE = 1 | |
range BOOL = FALSE..TRUE |
OlderNewer