結果
| 問題 |
No.1475 時計の歯車Easy
|
| ユーザー |
RKWRogue
|
| 提出日時 | 2021-04-17 12:16:12 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 547 bytes |
| コンパイル時間 | 1,653 ms |
| コンパイル使用メモリ | 173,164 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-03 19:12:12 |
| 合計ジャッジ時間 | 2,806 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 42 |
ソースコード
//
// main.cpp
// template
//
// Created by 渡辺健太郎 on 2021/04/17.
//
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
for (int i = 0; i < N; i++) {
int K;
cin >> K;
vector<int> L(K);
for (int i = 0; i < K; i++) {
cin >> L.at(i);
}
sort(L.begin(), L.end());
reverse(L.begin(), L.end());
for (int i = 0; i < K; i++) {
cout << L.at(i) << " ";
}
cout << endl;
}
}
RKWRogue