Submission #00015


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <bits/stdc++.h>
#define fin << "\n"
#define nintendo switch
#define space << " " <<
#define lol long long int
#define fout cout << "No\n"
#define tout cout << "Yes\n"
#define check cout << 1 fin;
#define Iter(type) type::iterator
#define usort(a) sort(a.begin() , a.end())
#define dsort(a) sort(a.rbegin() , a.rend())
#define fixout(a) cout << fixed << setprecision(a)
#define push_pair(a , b) push_back(make_pair(a , b))
#define ub(a , b) upper_bound(a.begin() , a.end() , b)
#define lb(a , b) lower_bound(a.begin() , a.end() , b)
#define bs(a , b) binary_search(a.begin() , a.end() , b)
#define out_all(a , b) for(auto b = a.begin();b != a.end();b ++) cout << *b fin
using namespace std;
int main(void){
ios::sync_with_stdio(false);
cin.tie(0);
int a[3] , b[3] , c[3];
for(int i = 0;i < 3;i ++) cin >> a[i];
for(int i = 0;i < 3;i ++) cin >> b[i];
for(int i = 0;i < 3;i ++) cin >> c[i];
int d = c[0] - a[0] - 1 , m = c[0] - b[0] - 1;
if(a[1] <= c[1] && a[2] <= c[2]) d ++;
if(b[1] <= c[1] && b[2] <= c[2]) m ++;
cout << max(d , m) - min(d , m) fin;
return(0);
}

ステータス

項目 データ
問題 0002 - Age Difference
ユーザー名 Koba_gochiusa
投稿日時 2023-09-20 16:08:16
言語 C++17
状態 Wrong Answer
得点 0
ソースコード長 1145 Byte
最大実行時間 30 ms
最大メモリ使用量 840 KB

セット

セット 得点 Cases
1 ALL 0 / 100 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
hand_made01.txt AC 27 ms 604 KB
1
hand_made02.txt AC 20 ms 432 KB
1
hand_made03.txt AC 21 ms 512 KB
1
hand_made04.txt AC 21 ms 596 KB
1
hand_made05.txt WA 20 ms 548 KB
1
in01.txt AC 30 ms 500 KB
1
in02.txt WA 19 ms 580 KB
1
in03.txt AC 18 ms 536 KB
1
in04.txt WA 16 ms 360 KB
1
in05.txt AC 23 ms 448 KB
1
in06.txt WA 24 ms 532 KB
1
in07.txt AC 19 ms 484 KB
1
in08.txt AC 16 ms 564 KB
1
in09.txt AC 18 ms 648 KB
1
in10.txt AC 20 ms 608 KB
1
in11.txt AC 19 ms 560 KB
1
in12.txt AC 16 ms 640 KB
1
in13.txt AC 22 ms 724 KB
1
in14.txt WA 16 ms 684 KB
1
in15.txt WA 22 ms 648 KB
1
in16.txt AC 28 ms 600 KB
1
in17.txt WA 20 ms 680 KB
1
in18.txt AC 16 ms 508 KB
1
in19.txt AC 26 ms 464 KB
1
in20.txt WA 20 ms 544 KB
1
in21.txt WA 17 ms 500 KB
1
in22.txt AC 26 ms 584 KB
1
in23.txt AC 19 ms 668 KB
1
in24.txt WA 22 ms 628 KB
1
in25.txt WA 23 ms 580 KB
1
in26.txt WA 17 ms 668 KB
1
in27.txt AC 21 ms 624 KB
1
in28.txt AC 21 ms 584 KB
1
in29.txt WA 17 ms 664 KB
1
in30.txt WA 20 ms 752 KB
1
sample01.txt AC 15 ms 840 KB
1
sample02.txt AC 20 ms 668 KB
1
sample03.txt AC 25 ms 752 KB
1