提出 #19952902


ソースコード 拡げる

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <iomanip>
#include <queue>
#include <stack>
#include <cstdlib>
#include <map>
#include <iomanip>
#include <set>
#include <functional>
#include <stdio.h>
#include <ctype.h>
#include <random>
#include <string.h>
#include <unordered_map>
#include <cstdio>
#include <climits>
using namespace std;
#define all(vec) vec.begin(),vec.end()
typedef long long ll;

ll gcd(ll x, ll y) {
	if (y == 0)return x;
	return gcd(y, x%y);
}
ll lcm(ll x, ll y) {
	return x / gcd(x, y)*y;
}
ll kai(ll x, ll y, ll m) {
	ll res = 1;
	for (ll i = x - y + 1; i <= x; i++) {
		res *= i; res %= m;
	}
	return res;
}
ll mod_pow(ll x, ll y, ll m) {
	ll res = 1;
	while (y > 0) {
		if (y & 1) {
			res = res * x % m;
		}
		x = x * x % m;
		y >>= 1;
	}
	return res;
}

ll comb(ll x, ll y, ll m) {
	if (y > x)return 0;
	return kai(x, y, m) * mod_pow(kai(y, y, m), m - 2, m) % m;
}

int v, t, s, d;

signed main() {
	std::random_device rnd;
	std::mt19937_64 mt(rnd());
	cin >> v >> t >> s >> d;
	if (d < t*v || s * v < d)cout << "Yes" << endl;
	else cout << "No" << endl;
}

提出情報

提出日時
問題 A - Vanishing Pitch
ユーザ tamurin
言語 C++ (GCC 9.2.1)
得点 100
コード長 1187 Byte
結果 AC
実行時間 5 ms
メモリ 3612 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 2
AC × 25
セット名 テストケース
Sample sample_01.txt, sample_02.txt
All handmade_00.txt, handmade_01.txt, handmade_02.txt, handmade_03.txt, handmade_04.txt, marginal_00.txt, marginal_01.txt, marginal_02.txt, marginal_03.txt, random2_00.txt, random2_01.txt, random2_02.txt, random2_03.txt, random2_04.txt, random2_05.txt, random2_06.txt, random2_07.txt, random2_08.txt, random2_09.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, sample_01.txt, sample_02.txt
ケース名 結果 実行時間 メモリ
handmade_00.txt AC 1 ms 3584 KiB
handmade_01.txt AC 2 ms 3612 KiB
handmade_02.txt AC 2 ms 3448 KiB
handmade_03.txt AC 2 ms 3448 KiB
handmade_04.txt AC 2 ms 3464 KiB
marginal_00.txt AC 2 ms 3576 KiB
marginal_01.txt AC 2 ms 3524 KiB
marginal_02.txt AC 2 ms 3580 KiB
marginal_03.txt AC 2 ms 3468 KiB
random2_00.txt AC 2 ms 3436 KiB
random2_01.txt AC 5 ms 3548 KiB
random2_02.txt AC 2 ms 3464 KiB
random2_03.txt AC 2 ms 3592 KiB
random2_04.txt AC 2 ms 3468 KiB
random2_05.txt AC 1 ms 3412 KiB
random2_06.txt AC 2 ms 3468 KiB
random2_07.txt AC 3 ms 3588 KiB
random2_08.txt AC 3 ms 3472 KiB
random2_09.txt AC 2 ms 3524 KiB
random_00.txt AC 2 ms 3520 KiB
random_01.txt AC 2 ms 3468 KiB
random_02.txt AC 2 ms 3524 KiB
random_03.txt AC 2 ms 3468 KiB
sample_01.txt AC 2 ms 3472 KiB
sample_02.txt AC 2 ms 3424 KiB