Skip to content

Commit

Permalink
feat: add 11728 15873
Browse files Browse the repository at this point in the history
  • Loading branch information
owl1753 committed Aug 12, 2024
1 parent 9202316 commit abad139
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 33 deletions.
21 changes: 21 additions & 0 deletions 11000/11728.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

int main() {
ios::sync_with_stdio(false);
cin.tie(NULL); cout.tie(NULL);
vector<int> v;
int n, m;
cin >> n >> m;
for (int i = 0; i < n + m; i++) {
int tmp;
cin >> tmp;
v.push_back(tmp);
}
sort(v.begin(), v.end());
for (auto &item : v) {
cout << item << " ";
}
}
16 changes: 16 additions & 0 deletions 15000/15873.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include <iostream>
#include <string>
using namespace std;

int main() {
string str;
cin >> str;
if (str.size() == 4) {
cout << 20;
} else if (str.size() == 3) {
if (str[0] == '1' && str[1] == '0') cout << 10 + (str[2] - '0');
else cout << 10 + (str[0] - '0');
} else {
cout << (str[0] - '0') + (str[1] - '0');
}
}
66 changes: 33 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,36 +42,36 @@

## 8월

| 날짜 | 대회 | 푼 문제 | 문제 유형 |
|:----:|:-------------------------------------------------------------------------------------------------------------------:|:-----------------------------------------------------------------------------------------:|:------------:|
| 8/1 | [2016 Arab Collegiate Programming Contest](https://www.acmicpc.net/category/detail/2188) | [18691](https://www.acmicpc.net/problem/18691) | 수학 |
| 8/2 | | **_[1247](https://www.acmicpc.net/problem/1247)_** | 큰 수 연산 |
| 8/3 | | **_[2338](https://www.acmicpc.net/problem/2338)_** | 큰 수 연산 |
| 8/4 | [제1회 한국항공대학교 프로그래밍 경진대회(KAUPC)](https://www.acmicpc.net/category/detail/2838) | [23351](https://www.acmicpc.net/problem/23351) | 그리디 |
| 8/5 | | | |
| 8/6 | | | |
| 8/7 | [NCPC 2007](https://www.acmicpc.net/category/detail/214) [coci1314-5](https://www.acmicpc.net/category/detail/1230) | [5052](https://www.acmicpc.net/problem/5052) [9935](https://www.acmicpc.net/problem/9935) | 문자열 집합 스택 |
| 8/8 | | **_[10825](https://www.acmicpc.net/problem/10825)_** | 정렬 |
| 8/9 | | **_[11663](https://www.acmicpc.net/problem/11663)_** | 이분 탐색 |
| 8/10 | [2019 연세대학교 컴퓨터과학과 프로그래밍 경진대회](https://www.acmicpc.net/category/detail/2024) | [17073](https://www.acmicpc.net/problem/17073) | 깊이 우선 탐색 |
| 8/11 | | **_[1419](https://www.acmicpc.net/problem/1419)_** | 애드혹 많은 조건 분기 |
| 8/12 | | | |
| 8/13 | | | |
| 8/14 | | | |
| 8/15 | | | |
| 8/16 | | | |
| 8/17 | | | |
| 8/18 | | | |
| 8/19 | | | |
| 8/20 | | | |
| 8/21 | | | |
| 8/22 | | | |
| 8/23 | | | |
| 8/24 | | | |
| 8/25 | | | |
| 8/26 | | | |
| 8/27 | | | |
| 8/28 | | | |
| 8/29 | | | |
| 8/30 | | | |
| 8/31 | | | |
| 날짜 | 대회 | 푼 문제 | 문제 유형 |
|:----:|:-------------------------------------------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------------------------:|:------------:|
| 8/1 | [2016 Arab Collegiate Programming Contest](https://www.acmicpc.net/category/detail/2188) | [18691](https://www.acmicpc.net/problem/18691) | 수학 |
| 8/2 | | **_[1247](https://www.acmicpc.net/problem/1247)_** | 큰 수 연산 |
| 8/3 | | **_[2338](https://www.acmicpc.net/problem/2338)_** | 큰 수 연산 |
| 8/4 | [제1회 한국항공대학교 프로그래밍 경진대회(KAUPC)](https://www.acmicpc.net/category/detail/2838) | [23351](https://www.acmicpc.net/problem/23351) | 그리디 |
| 8/5 | | | |
| 8/6 | | | |
| 8/7 | [NCPC 2007](https://www.acmicpc.net/category/detail/214) [coci1314-5](https://www.acmicpc.net/category/detail/1230) | [5052](https://www.acmicpc.net/problem/5052) [9935](https://www.acmicpc.net/problem/9935) | 문자열 집합 스택 |
| 8/8 | | **_[10825](https://www.acmicpc.net/problem/10825)_** | 정렬 |
| 8/9 | | **_[11663](https://www.acmicpc.net/problem/11663)_** | 이분 탐색 |
| 8/10 | [2019 연세대학교 컴퓨터과학과 프로그래밍 경진대회](https://www.acmicpc.net/category/detail/2024) | [17073](https://www.acmicpc.net/problem/17073) | 깊이 우선 탐색 |
| 8/11 | | **_[1419](https://www.acmicpc.net/problem/1419)_** | 애드혹 많은 조건 분기 |
| 8/12 | | **_[11728](https://www.acmicpc.net/problem/11728)_** **_[15873](https://www.acmicpc.net/problem/15873)_** | 정렬 수학 |
| 8/13 | | | |
| 8/14 | | | |
| 8/15 | | | |
| 8/16 | | | |
| 8/17 | | | |
| 8/18 | | | |
| 8/19 | | | |
| 8/20 | | | |
| 8/21 | | | |
| 8/22 | | | |
| 8/23 | | | |
| 8/24 | | | |
| 8/25 | | | |
| 8/26 | | | |
| 8/27 | | | |
| 8/28 | | | |
| 8/29 | | | |
| 8/30 | | | |
| 8/31 | | | |

0 comments on commit abad139

Please sign in to comment.