fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. return 0;
  7. }
Success #stdin #stdout 0s 16064KB
stdin
#include <iostream>
#include <vector>

using namespace std;

vector <char> szesnastkowy(int a)
{
    char c;
    vector <char>b;
    do
    {
        if (a%16>9) c=(char)((a%16)+55);
        else c=(char)((a%16)+48);
        b.push_back(c);
        a=a/16;
    }while(a!=0);
    return b;
}
vector <char> jedenastkowy(int a)
{
    char c;
    vector <char>b;
    do
    {
        if (a%11==10) c='A';
        else c=(char)((a%11)+48);
        b.push_back(c);
        a=a/11;
    }while(a!=0);
    return b;
}

int main()
{
    int ile, a;
    vector <char> b;
    vector <char> c;
    ile = 300;
    //cin >> ile;
    for (int i=0; i<ile; i++)
    {
        //cin >> a;
        a = i;
        b=szesnastkowy(a);
        cout << i <<".";
        for (int j=b.size()-1; j>=0; j--)
            cout << b[j];
            cout << " ";
        c=jedenastkowy(a);
        for (int j=c.size()-1; j>=0; j--)
            cout << c[j];
        cout << endl;
    }
    return 0;
}
stdout
Standard output is empty