32 lines
497 B
C
32 lines
497 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
typedef struct Transaction {
|
||
|
int amount;
|
||
|
char *service;
|
||
|
} Transaction;
|
||
|
|
||
|
int main(int argc, char **argv) {
|
||
|
Transaction x, y, z;
|
||
|
x.service = "Monnei";
|
||
|
y.service = "Fjee";
|
||
|
z.service = "Dolladollabilljoll";
|
||
|
scanf("%d %d %d", &x.amount, &y.amount, &z.amount);
|
||
|
|
||
|
// Get min
|
||
|
Transaction min = x;
|
||
|
if (y.amount < min.amount) {
|
||
|
min = y;
|
||
|
}
|
||
|
if (z.amount < min.amount) {
|
||
|
min = z;
|
||
|
}
|
||
|
|
||
|
printf("%s\n", min.service);
|
||
|
|
||
|
|
||
|
|
||
|
return 0;
|
||
|
|
||
|
|
||
|
}
|