Submission #882964


Source Code Expand

#include <bits/stdc++.h> // {{{

#define ARG4(_1, _2, _3, _4, ...) _4
#define rep(...) ARG4(__VA_ARGS__, FOR, REP)(__VA_ARGS__)
#define REP(i, a) FOR(i, 0, a)
#define FOR(i, a, b) for (int i = (a); i < (int)(b); ++i)
#define rrep(...) ARG4(__VA_ARGS__, RFOR, RREP)(__VA_ARGS__)
#define RREP(i, a) RFOR(i, 0, a)
#define RFOR(i, a, b) for (int i = (b)-1; i >= (int)(a); --i)
#define ALL(c) (c).begin(), (c).end()
#define TEN(n) ((ll)(1e##n))
#define pb emplace_back
#define mp make_pair
#define fi first
#define se second
#define USE1(T)         \
  template <typename T> \
  inline
#define USE2(T, U)                  \
  template <typename T, typename U> \
  inline
#define mygc(c) (c) = getchar_unlocked()
#define mypc(c) putchar_unlocked(c)

template <typename T>
using duo = std::pair<T, T>;
template <typename T>
using vec = std::vector<T>;
using ll = long long;
using pii = duo<int>;
// clang-format off
USE2(T,U)bool chmax(T&x,U a){return x<a&&(x=a,1);}
USE2(T,U)bool chmin(T&x,U a){return a<x&&(x=a,1);}
USE1(T=int)T in(){T x;std::cin>>x;return x;}
USE1(T=int)vec<T>in(int n){vec<T>v;v.reserve(n);rep(i,n)v.pb(in<T>());return v;}
USE1(T)vec<T>ndvec(T v,int n){return vec<T>(n,v);}
USE2(T,...Ts)auto ndvec(T v,int n,Ts...ns)->vec<decltype(ndvec(v,ns...))>{return ndvec(ndvec(v,ns...),n);}
USE1(T)void pr(T x){std::cout<<x<<'\n';}
USE2(T,...Ts)void pr(T x,Ts...xs){std::cout<<x<<' ';pr(xs...);}
USE1(T=int)T rd(){T x=0,m=0,k;for(;;){mygc(k);if(k=='-'){m=1;break;}if('0'<=k&&k<='9'){x=k-'0';break;}}for(;;){mygc(k);if(k<'0'||'9'<k)break;x=x*10+k-'0';}return x;}
USE1(T=int)void wr(T x,char c='\n'){int s=0,m=0;char b[32];if(x<0)m=1,x=-x;for(;x;x/=10)b[s++]=x%10;if(!s)b[s++]=0;if(m)mypc('-');for(;s--;)mypc(b[s]+'0');mypc(c);}
// clang-format on
// }}}
struct IoSetup { // {{{
  IoSetup() {
    std::ios::sync_with_stdio(0);
    std::cin.tie(0);
    std::cout.precision(10);
    std::cerr.precision(10);
  }
} iosetup; //}}}
using namespace std;
const int inf = 1001001001;
const ll infl = 1001001001001001001ll;
const int dd[] = {0, 1, 0, -1, 0};

signed main() {
  int H1 = in();
  int H2 = in();
  pr(H1 - H2);
  return 0;
}

Submission Info

Submission Time
Task A - 積雪深差
User orisano
Language C++11 (GCC 4.8.1)
Score 100
Code Size 2194 Byte
Status AC
Exec Time 31 ms
Memory 1052 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 29 ms 1000 KB
00_sample_02.txt AC 26 ms 928 KB
00_sample_03.txt AC 30 ms 1052 KB
test_01.txt AC 29 ms 876 KB
test_02.txt AC 26 ms 1044 KB
test_03.txt AC 29 ms 868 KB
test_04.txt AC 30 ms 1052 KB
test_05.txt AC 31 ms 904 KB
test_06.txt AC 28 ms 876 KB
test_07.txt AC 30 ms 1052 KB
test_08.txt AC 28 ms 876 KB
test_09.txt AC 30 ms 984 KB
test_10.txt AC 28 ms 872 KB
test_11.txt AC 26 ms 872 KB
test_12.txt AC 28 ms 924 KB
test_13.txt AC 27 ms 952 KB
test_14.txt AC 26 ms 872 KB
test_15.txt AC 28 ms 924 KB
test_16.txt AC 26 ms 1044 KB
test_17.txt AC 28 ms 876 KB