結果
| 問題 |
No.3259 C++ → Rust → Python
|
| コンテスト | |
| ユーザー |
l33t
|
| 提出日時 | 2025-09-07 05:36:23 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 510 bytes |
| コンパイル時間 | 3,538 ms |
| コンパイル使用メモリ | 274,648 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2025-09-07 05:36:28 |
| 合計ジャッジ時間 | 4,119 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define all(obj) (obj).begin(), (obj).end()
using ll = long long;
using namespace std;
int main() {
int L,R;cin>>L>>R;
vector<bool> lang(3,false);
for(int x = L; x <= R; x++){
if( 1<=x && x <=295) lang[0]=true;
else if( 296<=x && x<= 416) lang[1]=true;
else lang[2]=true;
}
int ans = 0;
for(int i = 0; i < 3; i++){
if( lang[i] == true) ans++;
}
cout << ans-1<<endl;
}
l33t