結果
| 問題 | No.3259 C++ → Rust → Python |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-01-04 12:09:20 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 347 bytes |
| 記録 | |
| コンパイル時間 | 3,489 ms |
| コンパイル使用メモリ | 336,440 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-01-04 12:09:25 |
| 合計ジャッジ時間 | 5,254 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main () {
int l,r;
cin >> l >> r;
vector<int> border = {1, 295, 296, 416, 417, 420};
int l_idx = lower_bound(border.begin(), border.end(), l) - border.begin();
int r_idx = lower_bound(border.begin(), border.end(), r) - border.begin();
cout << r_idx / 2 - l_idx / 2 << endl;
}