1 solutions

  • 0
    @ 2025-11-5 15:22:49

    C++ :

    #include <stdio.h>
    
    int main() {
    	int a, b;
    	int c, d;
    
    	scanf("%d %d", &a, &b);
    
    	scanf("%d %d", &c, &d);
    
    	printf("%d %d\n", (a*c-b*d), (a*d+b*c));
    	return 0;
    }
    
    • 1

    Information

    ID
    16721
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By