Cod sursa(job #3031368)
Utilizator | Data | 19 martie 2023 17:29:33 | |
---|---|---|---|
Problema | Cautare binara | Scor | 0 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva educationala | Marime | 0.24 kb |
#include <bits/stdc++.h>
#define ll long long
using namespace std;
ifstream f("");
ofstream g("");
int main()
{
int x;
int y;
f >> x;
while(f >> y and y < x)
{
cout << x << ' ';
y = x;
}
while(f >> y)
cout << y << ' ';
return 0;
}