#24254: 答案


j09348@kcis.com.tw (Dino Yin尹宣程)

School : No School
ID : 142467
IP address : [36.224.138.100]
Last Login :
2021-06-18 21:31:22
b877. 我是電視迷 -- 板橋高中教學題 | From: [36.224.139.174] | Post Date : 2021-01-31 14:09

#include <stdio.h>
#include <stdlib.h>
int main(void) {
int a, b, c;
scanf("%d %d", &a, &b);
c = a>b? 100-a+b:b-a;
printf("%d\n", c);
return 0;
}
 
#26699: Re:答案


s206681@hlc.edu.tw (曾學仕)

School : No School
ID : 159865
IP address : [111.243.195.118]
Last Login :
2021-09-17 23:42:17
b877. 我是電視迷 -- 板橋高中教學題 | From: [111.243.171.184] | Post Date : 2021-08-20 23:39

#include <stdio.h>
#include <stdlib.h>
int main(void) {
int a, b, c;
scanf("%d %d", &a, &b);
c = a>b? 100-a+b:b-a;
printf("%d\n", c);
return 0;
}


謝謝

 
ZeroJudge Forum