Submission #653341


Source Code Expand

#include <stdio.h>

int main(){
	int a,b;
	int ans;
	int ret;
	ret=scanf("%d %d",&a,&b);
	if( a < 0 && 0 < b ){
		ans=b-a-1;
	}else{
		ans=b-a;
	}
	printf("%d\n",ans);
	return 0;
}

Submission Info

Submission Time
Task A - 階段の下
User yab
Language C++ (GCC 4.9.2)
Score 100
Code Size 196 Byte
Status AC
Exec Time 26 ms
Memory 800 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 12
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, 11.txt, 12.txt
Case Name Status Exec Time Memory
01.txt AC 22 ms 700 KiB
02.txt AC 24 ms 708 KiB
03.txt AC 23 ms 796 KiB
04.txt AC 24 ms 652 KiB
05.txt AC 22 ms 708 KiB
06.txt AC 23 ms 796 KiB
07.txt AC 23 ms 800 KiB
08.txt AC 24 ms 796 KiB
09.txt AC 22 ms 800 KiB
10.txt AC 23 ms 796 KiB
11.txt AC 24 ms 708 KiB
12.txt AC 24 ms 800 KiB
sample_01.txt AC 23 ms 800 KiB
sample_02.txt AC 26 ms 668 KiB
sample_03.txt AC 24 ms 800 KiB