結果
| 問題 |
No.773 コンテスト
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-08-27 21:11:45 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 631 bytes |
| コンパイル時間 | 1,564 ms |
| コンパイル使用メモリ | 168,888 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-17 05:43:23 |
| 合計ジャッジ時間 | 2,596 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
/**
@file 773.cpp
@title No.773 コンテスト - yukicoder
@url https://yukicoder.me/problems/no/773
**/
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
#define ALL(obj) (obj).begin(), (obj).end()
#define REP(i, N) for (int i = 0; i < (N); ++i)
int main() {
int A, B;
cin >> A >> B;
vector<int> days = {23, 24, 25};
if (B < 23 && 25 < A) {
} else {
for (int q = A; q <= B; q++) {
auto itr = find(days.begin(), days.end(), q);
if (itr != days.end()) {
days.erase(itr);
} else {
continue;
}
}
}
cout << days.size() << endl;
return 0;
}