1 solutions
-
0
C :
#include <stdio.h> int main() { int a,b ; while(scanf("%d%d",&a,&b)!=EOF) { if(a>=b) printf("%d\n",a-b) ; else printf("%d\n",b-a) ; } return 0 ; }C++ :
#include<stdio.h> int main() { int a,b; while(scanf("%d%d",&a,&b)!=EOF&&a<1000&&b<1000) { int m; m=a-b; if(m<0) printf("%d\n",-m); else printf("%d\n",m); } return 0; }
- 1
Information
- ID
- 18600
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- (None)
- # Submissions
- 0
- Accepted
- 0
- Uploaded By