Cod sursa(job #1985724)

Utilizator insert_name_hereUAIC Ionita Tucar Vintur insert_name_here Data 28 mai 2017 10:50:13
Problema A+B Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.73 kb
#include <bits/stdc++.h>
using namespace std;
using uint = unsigned int;
using ll = long long;
using pii = pair<int, int>;
#define dbg(x) cerr<<#x": "<<(x)<<'\n'
#define dbg_v(x, n) cerr<<#x"[]: ";for(long long _=0;_<n;++_)cerr<<(x)[_]<<' ';cerr<<'\n'
#define all(v) v.begin(), v.end()
#define NMAX 

vector <int> v;
set<int> s;

void solve(int x)
{
	while(x)
	{
		v.push_back(x%10);
		s.insert(x%10);
	}
	
	for(auto it : s)
	{
		auto it2 = it;
		it2++; 
		if(it2 == s.end())
			break;
		
		ans = max(ans, );
		
	}
}

int main()
{
#ifndef ONLINE_JUDGE
	freopen("adunare.in", "r", stdin);
	freopen("adunare.out", "w", stdout);
#endif
	ios_base::sync_with_stdio(false);
	
	cin >> n;
	for(int i=1;i<n=;i++)
	{
		cin >> x;
		solve(x);
	}
	
	return 0;
}