Submission #913639
Source Code Expand
// Standard I/O
#include <iostream>
#include <sstream>
#include <cstdio>
// Standard Library
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <cmath>
// Template Class
#include <complex>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <queue>
#include <stack>
// Container Control
#include <algorithm>
using namespace std;
#define rep( i, n ) for( int i = 0; i < n; ++i )
#define irep( i, n ) for( int i = n-1; i >= 0; --i )
#define reep( i, s, n ) for ( int i = s; i < n; ++i )
#define ireep( i, n, s ) for ( int i = n-1; i >= s; --i )
#define foreach(itr, x) for( typeof(x.begin()) itr = x.begin(); itr != x.end(); ++itr)
#define mp make_pair
#define pb push_back
#define eb emplace_back
#define all( v ) v.begin(), v.end()
#define fs first
#define sc second
#define vc vector
// for visualizer.html
double SCALE = 1.0;
double OFFSET_X = 0.0;
double OFFSET_Y = 0.0;
#define LINE(x,y,a,b) cerr << "line(" << SCALE*(x) + OFFSET_X << "," \
<< SCALE*(y) + OFFSET_Y << "," \
<< SCALE*(a) + OFFSET_X << "," \
<< SCALE*(b) + OFFSET_Y << ")" << endl;
#define CIRCLE(x,y,r) cerr << "circle(" << SCALE*(x) + OFFSET_X << "," \
<< SCALE*(y) + OFFSET_Y << "," \
<< SCALE*(r) << ")" << endl;
typedef long long ll;
typedef complex<double> Point;
typedef pair<int, int> pii;
typedef pair<int, pii> ipii;
typedef vector<int> vi;
typedef vector<double> vd;
typedef vector< vector<int> > vii;
typedef vector< vector<double> > vdd;
typedef vector<int>::iterator vi_itr;
const int IINF = 1 << 28;
const double INF = 1e30;
const double EPS = 1e-10;
const double PI = acos(-1.0);
// Direction : L U R D
const int dx[] = { -1, 0, 1, 0};
const int dy[] = { 0, -1, 0, 1 };
int main()
{
int h1, h2;
cin >> h1 >> h2;
cout << h1 - h2 << endl;
}
Submission Info
Submission Time |
|
Task |
A - 積雪深差 |
User |
gyuuto |
Language |
C++11 (GCC 4.8.1) |
Score |
100 |
Code Size |
1897 Byte |
Status |
AC |
Exec Time |
19 ms |
Memory |
928 KB |
Judge Result
Set Name |
all |
Score / Max Score |
100 / 100 |
Status |
|
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 |
17 ms |
676 KB |
00_sample_02.txt |
AC |
19 ms |
928 KB |
00_sample_03.txt |
AC |
19 ms |
796 KB |
test_01.txt |
AC |
19 ms |
676 KB |
test_02.txt |
AC |
19 ms |
800 KB |
test_03.txt |
AC |
18 ms |
672 KB |
test_04.txt |
AC |
19 ms |
680 KB |
test_05.txt |
AC |
17 ms |
804 KB |
test_06.txt |
AC |
19 ms |
676 KB |
test_07.txt |
AC |
19 ms |
784 KB |
test_08.txt |
AC |
19 ms |
796 KB |
test_09.txt |
AC |
19 ms |
796 KB |
test_10.txt |
AC |
19 ms |
676 KB |
test_11.txt |
AC |
19 ms |
800 KB |
test_12.txt |
AC |
17 ms |
800 KB |
test_13.txt |
AC |
17 ms |
676 KB |
test_14.txt |
AC |
18 ms |
804 KB |
test_15.txt |
AC |
18 ms |
672 KB |
test_16.txt |
AC |
18 ms |
676 KB |
test_17.txt |
AC |
19 ms |
804 KB |