Submission #478577


Source Code Expand

#include <vector>
#include <map>
#include <climits>
#include <set>
#include <queue>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <bitset>
#include <cstring>
#include <list>
#include <iterator>

using namespace std;
using LL = long long;
using ULL = unsigned long long;
using VI = vector<int>; using VVI = vector<VI>; using VS = vector<string>;
using PII = pair<int, int>; using VPII = vector<pair<int, int>>;
template <typename T = int> using VT = vector<T>;
template <typename T = int> using VVT = VT<VT<T>>;
template <typename T = int> using LIM = numeric_limits<T>;

template <typename T> inline T fromString(const string &s) {T res; istringstream iss( s ); iss >> res; return res;};
template <typename T> inline string toString(const T &a) {ostringstream oss; oss << a; return oss.str();};

#define REP(i, x, n) for(int i = x; i < (int)(n); i++)
#define rep(i, n) REP(i, 0, n)
#define FOR(e, c) for (auto &e : c )
#define all(x) (x).begin(), (x).end()
#define mp(a, b) make_pair(a, b)
#define INF (1L << 30)
#define fst first
#define snd second
#define DUMP(x) cerr << #x << " = " << (x) << endl

const int dy[] = { 1, 0, -1, 0 };
const int dx[] = { 0, 1, 0, -1 };

int main() {
	ios_base::sync_with_stdio(false);
	cin.tie(nullptr);
	
	int h1, h2;
	cin >> h1 >> h2;
	cout << h1-h2 << endl;
	return 0;
}

Submission Info

Submission Time
Task A - 積雪深差
User kyaved
Language C++11 (GCC 4.8.1)
Score 100
Code Size 1556 Byte
Status AC
Exec Time 28 ms
Memory 1060 KB

Judge Result

Set Name all
Score / Max Score 100 / 100
Status
AC × 20
Set Name Test Cases
all 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt, test_13.txt, test_14.txt, test_15.txt, test_16.txt, test_17.txt
Case Name Status Exec Time Memory
00_sample_01.txt AC 27 ms 944 KB
00_sample_02.txt AC 27 ms 1056 KB
00_sample_03.txt AC 25 ms 1056 KB
test_01.txt AC 27 ms 940 KB
test_02.txt AC 26 ms 1048 KB
test_03.txt AC 26 ms 1056 KB
test_04.txt AC 27 ms 1048 KB
test_05.txt AC 26 ms 1056 KB
test_06.txt AC 26 ms 1056 KB
test_07.txt AC 26 ms 1056 KB
test_08.txt AC 26 ms 1056 KB
test_09.txt AC 25 ms 940 KB
test_10.txt AC 26 ms 1052 KB
test_11.txt AC 26 ms 1048 KB
test_12.txt AC 26 ms 1056 KB
test_13.txt AC 26 ms 1056 KB
test_14.txt AC 28 ms 1060 KB
test_15.txt AC 26 ms 1056 KB
test_16.txt AC 25 ms 864 KB
test_17.txt AC 26 ms 1056 KB