Submission #00053


ソースコード

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 np(v) next_permutation(v.begin(),v.end()) //次の順列
#define gcd(a,b) __gcd(a,b) //最大公約数
#define lcm(a,b) a/(gcd(a,b))*b //最小公倍数
#define lb(v,a) lower_bound(v.begin(),v.end(),a) //以上の最初
#define ub(v,a) upper_bound(v.begin(),v.end(),a) //越えの最初
#define bs(v,a) binary_search(v.begin(),v.end(),a) //値があるか
#define fixed(a) fixed<<setprecision(a) //小数点以下第 a + 1 を四捨五入
using namespace std;
using ll = long long;
using ull = unsigned long long;
using P = pair<ll,int>;
using pq = priority_queue<P,vector<P>,greater<P>>;
const int inf = 1 << 30;
const ll ll_inf = 1LL << 62;
struct edge {
int c,to;
};
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
srand((unsigned int)time(NULL));
int A,B;
cin>>A>>B;
cout<<(A + B*7 <= 30?1:0)<<"\n";
}

ステータス

項目 データ
問題 0002 - 11月
ユーザー名 r2213
投稿日時 2024-03-29 12:06:44
言語 C++17
状態 Accepted
得点 10
ソースコード長 905 Byte
最大実行時間 31 ms
最大メモリ使用量 720 KB

セット

セット 得点 Cases
1 ALL 10 / 10 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
01-01.txt AC 22 ms 476 KB
1
01-02.txt AC 20 ms 556 KB
1
01-03.txt AC 20 ms 512 KB
1
01-04.txt AC 19 ms 468 KB
1
01-05.txt AC 17 ms 552 KB
1
01-06.txt AC 23 ms 384 KB
1
01-07.txt AC 31 ms 468 KB
1
01-08.txt AC 19 ms 552 KB
1
01-09.txt AC 19 ms 632 KB
1
01-10.txt AC 24 ms 588 KB
1
01-11.txt AC 24 ms 672 KB
1
01-12.txt AC 20 ms 500 KB
1
01-13.txt AC 21 ms 588 KB
1
01-14.txt AC 25 ms 420 KB
1
01-15.txt AC 17 ms 508 KB
1
01-16.txt AC 15 ms 592 KB
1
01-17.txt AC 28 ms 548 KB
1
01-18.txt AC 31 ms 636 KB
1
01-19.txt AC 22 ms 720 KB
1
01-20.txt AC 16 ms 544 KB
1
01-21.txt AC 21 ms 624 KB
1
01-22.txt AC 22 ms 576 KB
1
01-23.txt AC 21 ms 664 KB
1
sample-01.txt AC 20 ms 624 KB
1
sample-02.txt AC 23 ms 580 KB
1
sample-03.txt AC 16 ms 536 KB
1