-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathone.cpp
More file actions
42 lines (39 loc) · 938 Bytes
/
Copy pathone.cpp
File metadata and controls
42 lines (39 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <bits/stdc++.h>
#define f(a, n, i) for (int i = a; i < n; i += 1)
using namespace std;
const int N = 1e5 + 10;
#define YES cout << "YES" << endl
#define NO cout << "NO" << endl
#define el endl
#define pb push_back
#define ff first
#define ss second
typedef long long int ll;
typedef long double ld;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef pair<ld, ld> pld;
const int INF = 1e9;
const ll LLINF = 1e18;
const int MOD = 1e9 + 7;
int main()
{
int a, b, c;
cin >> a >> b >> c;
cout << a * 2 << endl;
for (int i = 0; i < a; i++)
cout << a << " ";
for (int i = 0; i < 45 * a / 50; i++)
cout
<< b << " ";
for (int i = 0; i < 2 * a / 25; i++)
cout << c << " ";
for (int i = 0; i < (2 * a - 99 * a / 50); i++)
cout << c + 1 << " ";
cout << endl;
return 0;
}