結果
| 問題 |
No.1475 時計の歯車Easy
|
| ユーザー |
|
| 提出日時 | 2021-05-01 01:38:57 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 56 ms / 2,000 ms |
| コード長 | 410 bytes |
| コンパイル時間 | 857 ms |
| コンパイル使用メモリ | 79,760 KB |
| 最終ジャッジ日時 | 2025-01-21 04:57:46 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 42 |
ソースコード
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
void solve() {
int n;
cin >> n;
vector<int> xs(n);
for (auto& x : xs) cin >> x;
sort(xs.rbegin(), xs.rend());
for (auto x : xs) cout << x << " ";
cout << "\n";
}
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
int q;
cin >> q;
while (q--) solve();
return 0;
}