結果
問題 | No.1475 時計の歯車Easy |
ユーザー |
![]() |
提出日時 | 2021-04-16 14:11:26 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 1,058 bytes |
コンパイル時間 | 3,298 ms |
コンパイル使用メモリ | 186,436 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-02 14:43:34 |
合計ジャッジ時間 | 9,314 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 RE * 2 |
other | RE * 42 |
ソースコード
#include<bits/stdc++.h>#include<ext/pb_ds/assoc_container.hpp>using namespace std;using namespace __gnu_pbds;typedef tree<int,null_type,less<int>,rb_tree_tag,tree_order_statistics_node_update>pbds;#define M 1000000007#define U 998244353#define N 1000005typedef long long int ll;typedef unsigned long long int ull;#define sz(c) (int)c.size()#define fr first#define ll long long#define sc second#define pb push_back#define ppb pop_back#define mp make_pair#define all(a) (a).begin(), (a).end()#define rep(i, a, n) for (ll i = a; i < n; i++)#define r0 return 0;#define endl '\n'#define INF (int)1e15#define boost \ios::sync_with_stdio(0); \cin.tie(0); \cout.tie(0);signed main(){boostll n;set<ll,greater<ll>>arr;cin>>n;n++;string s1;while (n--){arr.clear();getline(cin,s1);for(ll i=0;i<s1.size();i+=2){arr.insert(stoll(s1.substr(i,1)));}for(auto &i:arr){cout<<i<<" ";}cout<<"\n";}}