Submission #72502269
Source Code Expand
#if !__INCLUDE_LEVEL__
#include __FILE__
int main(){
int p,q,x,y;
cin >> p >> q >> x >> y;
if(x>=p&&x<=p+99&&y>=q&&y<=q+99){
Yes;
}else{
No;
}
}
#else
#include <bits/stdc++.h>
using namespace std;
struct Init { Init() { ios::sync_with_stdio(0); cin.tie(0); cout << setprecision(13); } }init;
using ll = long long;
using ull = unsigned long long;
using pii = pair<int,int>;
using pll = pair<ll,ll>;
#define rep(i, x, limit) for (ll i = (ll)x; i < (ll)limit; i++)
#define REP(i, x, limit) for (ll i = (ll)x; i <= (ll)limit; i++)
#define all(x) x.begin(), x.end()
#define rall(x) x.rbegin(), x.rend()
#define el '\n'
#define spa " "
#define Yes cout << "Yes" << el
#define No cout << "No" << el
#define YES cout << "YES" << el
#define NO cout << "NO" << el
#define eps (1e-10)
#define Equals(a,b) (fabs((a) - (b)) < eps )
#define debug(x) cerr << #x << " = " << x << el
const double pi = 3.141592653589793238;
const int inf = 1073741823;
const ll infl = 1LL << 60;
const string ABC = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
const string abc = "abcdefghijklmnopqrstuvwxyz";
template<typename T1, typename T2>
std::ostream &operator<< (std::ostream &os, std::pair<T1,T2> p){
os << "{" << p.first << "," << p.second << "}";
return os;
}
// 配列の要素を空白区切りで出力 第二引数をtrueにすると改行区切り
template<typename T> inline void print_vec(const vector<T> &v, bool split_line=false) {
if(v.empty()){
cout << "This vector is empty." << el;
return;
}
constexpr bool isValue = is_integral<T>::value;
for (int i = 0; i < (int)v.size(); i++) {
if constexpr(isValue){
if((v[i]==inf) || (v[i]==infl)) cout << 'x' << " \n"[split_line];
else cout << v[i] << " \n"[split_line || i+1==(int)v.size()];
}else cout << v[i] << " \n"[split_line || i+1==(int)v.size()];
}
}
template<typename T1, typename T2> inline void print_vec(const vector<pair<T1,T2>> &v, bool split_line=false){
if(v.empty()){
cout << "This vector is empty." << el;
return;
}
for(int i = 0; i < (int)v.size(); i++){
cout << '{';
auto [a,b] = v[i];
constexpr pair<bool,bool> isValue = {is_integral<T1>::value, is_integral<T2>::value};
if constexpr(isValue.first){
if(a==inf || a==infl) cout << "x,";
else cout << a << ",";
}else cout << a << ",";
if constexpr(isValue.second){
if(b==inf || b==infl) cout << "x,";
else cout << b;
}else cout << b;
cout << "}" << " \n"[split_line || i+1==(int)v.size()];
}
}
template<typename T1, typename T2> inline bool chmax(T1 &a, T2 b) {
bool compare = a < b;
if(compare) a = b;
return compare;
}
template<typename T1, typename T2> inline bool chmin(T1 &a, T2 b) {
bool compare = a > b;
if(compare) a = b;
return compare;
}
// std::chronoを利用した時間計測用クラス
class Timer{
chrono::system_clock::time_point start;
public:
Timer() : start(chrono::system_clock::now()) {}
double count(){
chrono::duration<double> Time_ = chrono::system_clock::now() - start;
return Time_.count();
}
bool is_under(double x){
return (this -> count()) < x;
}
};
#endif
Submission Info
| Submission Time |
|
| Task |
A - Black Square |
| User |
xX0Mame0Xx |
| Language |
C++23 (GCC 15.2.0) |
| Score |
100 |
| Code Size |
3468 Byte |
| Status |
AC |
| Exec Time |
1 ms |
| Memory |
3712 KiB |
Judge Result
| Set Name |
Sample |
All |
| Score / Max Score |
0 / 0 |
100 / 100 |
| Status |
|
|
| Set Name |
Test Cases |
| Sample |
example_00.txt, example_01.txt, example_02.txt |
| All |
example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, hand_06.txt, hand_07.txt, hand_08.txt, hand_09.txt, hand_10.txt, hand_11.txt, hand_12.txt, hand_13.txt, hand_14.txt, hand_15.txt, hand_16.txt, hand_17.txt, hand_18.txt, hand_19.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt |
| Case Name |
Status |
Exec Time |
Memory |
| example_00.txt |
AC |
1 ms |
3492 KiB |
| example_01.txt |
AC |
1 ms |
3572 KiB |
| example_02.txt |
AC |
1 ms |
3492 KiB |
| hand_00.txt |
AC |
1 ms |
3640 KiB |
| hand_01.txt |
AC |
1 ms |
3660 KiB |
| hand_02.txt |
AC |
1 ms |
3532 KiB |
| hand_03.txt |
AC |
1 ms |
3560 KiB |
| hand_04.txt |
AC |
1 ms |
3440 KiB |
| hand_05.txt |
AC |
1 ms |
3396 KiB |
| hand_06.txt |
AC |
1 ms |
3440 KiB |
| hand_07.txt |
AC |
1 ms |
3556 KiB |
| hand_08.txt |
AC |
1 ms |
3640 KiB |
| hand_09.txt |
AC |
1 ms |
3644 KiB |
| hand_10.txt |
AC |
1 ms |
3660 KiB |
| hand_11.txt |
AC |
1 ms |
3556 KiB |
| hand_12.txt |
AC |
1 ms |
3712 KiB |
| hand_13.txt |
AC |
1 ms |
3620 KiB |
| hand_14.txt |
AC |
1 ms |
3516 KiB |
| hand_15.txt |
AC |
1 ms |
3552 KiB |
| hand_16.txt |
AC |
1 ms |
3552 KiB |
| hand_17.txt |
AC |
1 ms |
3552 KiB |
| hand_18.txt |
AC |
1 ms |
3660 KiB |
| hand_19.txt |
AC |
1 ms |
3504 KiB |
| random_00.txt |
AC |
1 ms |
3644 KiB |
| random_01.txt |
AC |
1 ms |
3516 KiB |
| random_02.txt |
AC |
1 ms |
3508 KiB |
| random_03.txt |
AC |
1 ms |
3516 KiB |
| random_04.txt |
AC |
1 ms |
3640 KiB |
| random_05.txt |
AC |
1 ms |
3556 KiB |
| random_06.txt |
AC |
1 ms |
3516 KiB |
| random_07.txt |
AC |
1 ms |
3508 KiB |
| random_08.txt |
AC |
1 ms |
3712 KiB |
| random_09.txt |
AC |
1 ms |
3440 KiB |