#include<stdio.h> int main() { int t,k=1; scanf("%d",&t); while (t--){ long long a; long long b; scanf("%lld",&a); scanf("%lld",&b); if(a>=b) { printf("Case #%d:\n",k); k=k+1; printf("%lld\n",a-b);} else { printf("Case #%d:\n",k); k=k+1; printf("-%lld\n",b-a);} } return 0; } |
Double click to view unformatted code.