aboutsummaryrefslogtreecommitdiff
path: root/tests/sysy_lvX/111_apple_and_norm2.sy
blob: 8c1d250be1088509f03d0eed84742f09cab549ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//sample function of apple and norm
int main() {
	int n, x, y;
    n = 10;
    x = 4;
    y = 9;
	int left;
    left = n - (y + x - 1) / x;
	if (left < 0)
		left = 0;
	return left;
}