結果
問題 |
No.1475 時計の歯車Easy
|
ユーザー |
|
提出日時 | 2021-04-12 17:37:01 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 426 bytes |
コンパイル時間 | 3,270 ms |
コンパイル使用メモリ | 131,276 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 14:34:20 |
合計ジャッジ時間 | 3,286 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 42 |
ソースコード
#include <stdio.h> #include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { int N; cin >> N; vector<int> P; for (int i = 0; i < N; i++) { int K; cin >> K; P.resize(K); for (int j = 0; j < K; j++) { cin >> P[j]; } sort(P.rbegin(), P.rend()); for (int j = 0; j < K; j++) { cout << P[j] << " "; } cout << endl; } return 0; }