Submission #3072600


Source Code Expand

Copy
#include<iostream>
#include<math.h>
#include<vector>
#include<algorithm>
#include<stdio.h>


using namespace std;
int main(void)
{
	int num;
	int ans;
	int i;
	cin >> num >> i;
	cout << num - i+1 << endl;
	return 0;

}

Submission Info

Submission Time
Task A - Train
User kanta
Language C++ (GCC 5.4.1)
Score 100
Code Size 235 Byte
Status
Exec Time 1 ms
Memory 256 KB

Judge Result

Set Name Score / Max Score Test Cases
Sample 0 / 0 0_00.txt, 0_01.txt, 0_02.txt
All 100 / 100 0_00.txt, 0_01.txt, 0_02.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt, 1_04.txt
Case Name Status Exec Time Memory
0_00.txt 1 ms 256 KB
0_01.txt 1 ms 256 KB
0_02.txt 1 ms 256 KB
1_00.txt 1 ms 256 KB
1_01.txt 1 ms 256 KB
1_02.txt 1 ms 256 KB
1_03.txt 1 ms 256 KB
1_04.txt 1 ms 256 KB