結果
問題 |
No.1475 時計の歯車Easy
|
ユーザー |
|
提出日時 | 2022-03-20 17:18:16 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 357 bytes |
コンパイル時間 | 3,324 ms |
コンパイル使用メモリ | 171,464 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-07 02:59:55 |
合計ジャッジ時間 | 3,244 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 42 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; while(n--){ int m; cin >> m; vector<int> a(m); for(auto &&v:a)cin>>v; sort(a.rbegin(), a.rend()); for(int i=0;i<m;i++){ if(i)putchar(' '); printf("%d",a[i]); } putchar('\n'); } }