24 lines
482 B
C++
24 lines
482 B
C++
#include <cstddef>
|
|
#include <iostream>
|
|
#include <ranges>
|
|
|
|
using std::iostream,std::cin,std::cout;
|
|
constexpr const auto range = std::ranges::views::iota;
|
|
|
|
const int MAX_N {(size_t)2e5+5},MAX_COLOR {50+5};
|
|
int n,k,p;
|
|
int ans;
|
|
struct Hotel{
|
|
int color,min_cost;
|
|
}hotel[MAX_N];
|
|
|
|
int main(){
|
|
iostream::sync_with_stdio(false),cin.tie(nullptr),cout.tie(nullptr);
|
|
|
|
cin>>n>>k>>p;
|
|
for(const int i:range(1,n+1)){
|
|
cin>>hotel[i].color>>hotel[i].min_cost;
|
|
}
|
|
|
|
|
|
} |