Submission #312034
Source Code Expand
#include <iostream>
#include <set>
#include <algorithm>
#include <iterator>
using namespace std;
int main(int, char**){
int n,a_i,b_i,b_max = 0;
pair<int,int> ap[100001];
pair<int,int> bp[100001];
cin >> n;
for(long long int i = 0;i < n;++i){
cin >> a_i >> b_i;
ap[i].first = a_i;
ap[i].second = i;
bp[i].first = b_i;
bp[i].second = i;
if(b_max < b_i) b_max = b_i;
}
sort(ap, ap+n);
sort(bp, bp+n);
int dp_count[1000001];
//int dp_minnum[1000001] = {0};
long long int ans = 0, t=1000001;
vector<int> lis;
for(long long int i = 0;i < b_max;++i){
cout << b_max-i << endl;
}
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | C - 仕事計画 |
| User | tanao |
| Language | C++11 (GCC 4.8.1) |
| Score | 0 |
| Code Size | 739 Byte |
| Status | WA |
| Exec Time | 2038 ms |
| Memory | 2540 KiB |
Judge Result
| Set Name | Sample | All | ||||||
|---|---|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 0 / 100 | ||||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample1.txt, sample2.txt, sample3.txt |
| All | 0.txt, 1.txt, 10.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt, 16.txt, 17.txt, 18.txt, 19.txt, 2.txt, 20.txt, 21.txt, 22.txt, 23.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, 8.txt, 9.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 0.txt | WA | 30 ms | 2400 KiB |
| 1.txt | WA | 30 ms | 2404 KiB |
| 10.txt | WA | 31 ms | 2420 KiB |
| 11.txt | TLE | 2038 ms | 2344 KiB |
| 12.txt | WA | 35 ms | 2408 KiB |
| 13.txt | WA | 35 ms | 2460 KiB |
| 14.txt | TLE | 2037 ms | 2536 KiB |
| 15.txt | WA | 29 ms | 2404 KiB |
| 16.txt | WA | 32 ms | 2448 KiB |
| 17.txt | TLE | 2032 ms | 2540 KiB |
| 18.txt | WA | 126 ms | 2408 KiB |
| 19.txt | WA | 140 ms | 2456 KiB |
| 2.txt | WA | 1484 ms | 2452 KiB |
| 20.txt | TLE | 2037 ms | 2532 KiB |
| 21.txt | WA | 128 ms | 2404 KiB |
| 22.txt | WA | 141 ms | 2408 KiB |
| 23.txt | TLE | 2034 ms | 2460 KiB |
| 3.txt | WA | 31 ms | 2416 KiB |
| 4.txt | WA | 30 ms | 2420 KiB |
| 5.txt | WA | 1916 ms | 2404 KiB |
| 6.txt | WA | 27 ms | 2408 KiB |
| 7.txt | WA | 33 ms | 2304 KiB |
| 8.txt | TLE | 2038 ms | 2540 KiB |
| 9.txt | WA | 31 ms | 2412 KiB |
| sample1.txt | WA | 28 ms | 2412 KiB |
| sample2.txt | WA | 30 ms | 2416 KiB |
| sample3.txt | WA | 28 ms | 2420 KiB |