mirror of
				https://github.com/ton-blockchain/ton
				synced 2025-03-09 15:40:10 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
	
		
			177 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			10 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);
 | |
| }
 |