Submission #652443
Source Code Expand
#include <iostream> #include <algorithm> #include <vector> #include <cstdio> #include <cmath> using namespace std; typedef unsigned char byte; typedef long long int LLint; typedef unsigned long long int uLLint; int main(){ LLint a,b,r; cin>>a>>b; r=b-a; if (a<0 && 0<b) r-=1; cout<<r<<endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - 階段の下 |
User | m_buyoh |
Language | C++ (GCC 4.9.2) |
Score | 100 |
Code Size | 369 Byte |
Status | AC |
Exec Time | 28 ms |
Memory | 928 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
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 | 26 ms | 804 KB |
02.txt | AC | 25 ms | 808 KB |
03.txt | AC | 24 ms | 920 KB |
04.txt | AC | 27 ms | 808 KB |
05.txt | AC | 27 ms | 916 KB |
06.txt | AC | 27 ms | 800 KB |
07.txt | AC | 28 ms | 792 KB |
08.txt | AC | 25 ms | 800 KB |
09.txt | AC | 26 ms | 928 KB |
10.txt | AC | 26 ms | 804 KB |
11.txt | AC | 24 ms | 796 KB |
12.txt | AC | 26 ms | 800 KB |
sample_01.txt | AC | 26 ms | 808 KB |
sample_02.txt | AC | 25 ms | 928 KB |
sample_03.txt | AC | 25 ms | 920 KB |