Submission #1551855


Source Code Expand

#include <bits/stdc++.h>
using namespace std;
//#define int long long

typedef long long ll;
typedef unsigned long long ull;
typedef unsigned __int128 HASH;
typedef pair<int,int> pii;
typedef pair<ll, ll> pll;
typedef pair<ull, ull> pullull;
typedef pair<ll,int> plli;
typedef pair<double, int> pdbi;
typedef pair<int,pii> pipii;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<vi> vvi;
typedef vector<vvi> vvvi;
typedef vector<pii> vpii;

#define rep(i,n) for (int i=0;i<(n);i++)
#define rep2(i,a,b) for (int i=(a);i<(b);i++)
#define rrep(i,n) for (int i=(n);i>0;i--)
#define rrep2(i,a,b) for (int i=(a);i>b;i--)
#define pb push_back
#define fi first
#define se second
#define all(a) (a).begin(),(a).end()

const ll hmod1 = 999999937;
const ll hmod2 = 1000000000 + 9;
const ll INF = 1<<30;
const ll mod = 1000000000 + 7;
const int dx4[4] = {1, 0, -1, 0};
const int dy4[4] = {0, 1, 0, -1};
const int dx8[8] = {1, 1, 1, 0, 0, -1, -1, -1};
const int dy8[8] = {0, 1, -1, 1, -1, 0, 1, -1};
const double pi = 3.141592653589793;

int n, m;

signed main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    cin >> n >> m;
    cout << n / (m + 1) << endl;
}

Submission Info

Submission Time
Task C - amylasemania IIDX
User roto_37
Language C++14 (GCC 5.4.1)
Score 100
Code Size 1214 Byte
Status AC
Exec Time 1 ms
Memory 256 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 37
Set Name Test Cases
All 00-sample-00, 00-sample-01, 10-small-00, 10-small-01, 10-small-02, 10-small-03, 10-small-04, 10-small-05, 10-small-06, 10-small-07, 10-small-08, 10-small-09, 10-small-10, 10-small-11, 10-small-12, 10-small-13, 10-small-14, 20-large-00, 20-large-01, 20-large-02, 20-large-03, 20-large-04, 30-random-00, 30-random-01, 30-random-02, 30-random-03, 30-random-04, 30-random-05, 30-random-06, 30-random-07, 30-random-08, 30-random-09, 30-random-10, 30-random-11, 30-random-12, 30-random-13, 30-random-14
Case Name Status Exec Time Memory
00-sample-00 AC 1 ms 256 KB
00-sample-01 AC 1 ms 256 KB
10-small-00 AC 1 ms 256 KB
10-small-01 AC 1 ms 256 KB
10-small-02 AC 1 ms 256 KB
10-small-03 AC 1 ms 256 KB
10-small-04 AC 1 ms 256 KB
10-small-05 AC 1 ms 256 KB
10-small-06 AC 1 ms 256 KB
10-small-07 AC 1 ms 256 KB
10-small-08 AC 1 ms 256 KB
10-small-09 AC 1 ms 256 KB
10-small-10 AC 1 ms 256 KB
10-small-11 AC 1 ms 256 KB
10-small-12 AC 1 ms 256 KB
10-small-13 AC 1 ms 256 KB
10-small-14 AC 1 ms 256 KB
20-large-00 AC 1 ms 256 KB
20-large-01 AC 1 ms 256 KB
20-large-02 AC 1 ms 256 KB
20-large-03 AC 1 ms 256 KB
20-large-04 AC 1 ms 256 KB
30-random-00 AC 1 ms 256 KB
30-random-01 AC 1 ms 256 KB
30-random-02 AC 1 ms 256 KB
30-random-03 AC 1 ms 256 KB
30-random-04 AC 1 ms 256 KB
30-random-05 AC 1 ms 256 KB
30-random-06 AC 1 ms 256 KB
30-random-07 AC 1 ms 256 KB
30-random-08 AC 1 ms 256 KB
30-random-09 AC 1 ms 256 KB
30-random-10 AC 1 ms 256 KB
30-random-11 AC 1 ms 256 KB
30-random-12 AC 1 ms 256 KB
30-random-13 AC 1 ms 256 KB
30-random-14 AC 1 ms 256 KB