Submission #00077


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <bits/stdc++.h>
using namespace std;
#define st string
#define ll long long
#define ull unsigned long long
#define all(x) sort(x.begin(),x.end())
#define pq priority_queue<long long>
#define endl "\n"
#define gcd(x,y) __gcd(x,y) //最大公約数
#define lcm(x,y) x/(__gcd(x,y))*y //最小公倍数
const long long INF = 1LL << 60;
template<typename T> inline bool chmax(T &a, T b) { return ((a < b) ? (a = b, true) : (false)); }
template<typename T> inline bool chmin(T &a, T b) { return ((a > b) ? (a = b, true) : (false)); }
int main() {
int a,b;
cin >> a >> b;
if(a + (7 * b) <= 30){
cout << 1 << endl;
}else{
cout << 0 << endl;
}
}

ステータス

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

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
01-01.txt AC 18 ms 348 KB
1
01-02.txt AC 18 ms 320 KB
1
01-03.txt AC 22 ms 548 KB
1
01-04.txt AC 23 ms 516 KB
1
01-05.txt AC 19 ms 364 KB
1
01-06.txt AC 24 ms 468 KB
1
01-07.txt AC 37 ms 436 KB
1
01-08.txt AC 17 ms 532 KB
1
01-09.txt AC 19 ms 504 KB
1
01-10.txt AC 31 ms 600 KB
1
01-11.txt AC 17 ms 568 KB
1
01-12.txt AC 26 ms 532 KB
1
01-13.txt AC 22 ms 500 KB
1
01-14.txt AC 19 ms 596 KB
1
01-15.txt AC 15 ms 440 KB
1
01-16.txt AC 21 ms 536 KB
1
01-17.txt AC 19 ms 640 KB
1
01-18.txt AC 14 ms 612 KB
1
01-19.txt AC 27 ms 456 KB
1
01-20.txt AC 22 ms 560 KB
1
01-21.txt AC 22 ms 536 KB
1
01-22.txt AC 22 ms 632 KB
1
01-23.txt AC 21 ms 732 KB
1
sample-01.txt AC 21 ms 572 KB
1
sample-02.txt AC 27 ms 672 KB
1
sample-03.txt AC 20 ms 516 KB
1