結果
問題 |
No.1475 時計の歯車Easy
|
ユーザー |
![]() |
提出日時 | 2021-04-15 04:55:08 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 355 bytes |
コンパイル時間 | 694 ms |
コンパイル使用メモリ | 75,704 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-01 03:50:18 |
合計ジャッジ時間 | 2,688 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 42 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> int main() { int N; std::cin >> N; while (N--) { int K; std::cin >> K; std::vector<int> L(K); for (int i = 0; i < K; ++i) { std::cin >> L[i]; } std::sort(L.rbegin(),L.rend()); for (auto t : L) { std::cout << t << ' '; } std::cout << std::endl; } return 0; }