From a08205e90cd0ef7a44c148d64d6ee9486ce11f5d Mon Sep 17 00:00:00 2001 From: Ren Baoshuo Date: Sun, 1 Nov 2020 20:36:16 +0800 Subject: [PATCH] P2369 EXCEEDED WARNING A R41037866 --- problem/P2369/P2369.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 problem/P2369/P2369.cpp diff --git a/problem/P2369/P2369.cpp b/problem/P2369/P2369.cpp new file mode 100644 index 00000000..73effc84 --- /dev/null +++ b/problem/P2369/P2369.cpp @@ -0,0 +1,16 @@ +#include + +using namespace std; + +int main() { + short a[1000005]; + int n, m; + cin >> n >> m; + for (int i = 0; i < n; i++) { + cin >> a[i]; + } + sort(a, a + n); + for (int i = 0; i < m; i++) { + cout << a[i] << endl; + } +} \ No newline at end of file