結果
問題 | No.1475 時計の歯車Easy |
ユーザー |
|
提出日時 | 2024-08-11 17:51:57 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 22 ms / 2,000 ms |
コード長 | 431 bytes |
コンパイル時間 | 731 ms |
コンパイル使用メモリ | 90,900 KB |
最終ジャッジ日時 | 2025-02-23 22:27:59 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 42 |
ソースコード
#include <iostream>#include <cstdint>#include <algorithm>#include <functional>using namespace std;int main(){cin.tie(nullptr);ios::sync_with_stdio(false);uint16_t N, i, K, j, L[20];cin >> N;for (i = 0; i != N; ++i){cin >> K;for (j = 0; j != K; ++j)cin >> L[j];sort(L, L + K, greater<uint16_t>());cout << L[0];for (j = 1; j != K; ++j)cout << ' ' << L[j];cout << '\n';}return 0;}