mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-13 03:32:22 +00:00
11 lines
177 B
Text
11 lines
177 B
Text
|
global ((int, int) -> int) op;
|
||
|
|
||
|
int check_assoc(int a, int b, int c) {
|
||
|
return op(op(a, b), c) == op(a, op(b, c));
|
||
|
}
|
||
|
|
||
|
int main() {
|
||
|
op = _+_;
|
||
|
return check_assoc(2, 3, 9);
|
||
|
}
|