結果
| 問題 |
No.1475 時計の歯車Easy
|
| ユーザー |
Yash Patel
|
| 提出日時 | 2021-04-16 14:14:12 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 1,058 bytes |
| コンパイル時間 | 2,292 ms |
| コンパイル使用メモリ | 184,428 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-02 14:45:40 |
| 合計ジャッジ時間 | 9,382 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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 1000005
typedef 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()
{
boost
ll 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";
}
}
Yash Patel