結果
問題 |
No.1475 時計の歯車Easy
|
ユーザー |
![]() |
提出日時 | 2021-04-13 20:34:39 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 459 bytes |
コンパイル時間 | 1,763 ms |
コンパイル使用メモリ | 172,872 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-30 01:07:02 |
合計ジャッジ時間 | 3,041 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 42 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; vector<vector<int>> L( N ); for( int i = 0; i < N; i++ ) { int K; cin >> K; for( int j = 0; j < K; j++ ) { int l; cin >> l; L[i].push_back( l ); } } for( int i = 0; i < N; i++ ) { sort( L[i].begin(), L[i].end(), greater<int>() ); int n = L[i].size(); for( int j = 0; j < n; j++ ) { if( j ) cout << " "; cout << L[i][j]; } cout << endl; } }