Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma GCC optimize("O3")
- #include <bits/stdc++.h>
- using namespace std;
- #define int long long
- #define double long double
- #define _FastIO ios_base::sync_with_stdio(0); cin.tie(0)
- #define F first
- #define S second
- signed main()
- {
- _FastIO;
- /*
- // O
- int n;
- cin >> n;
- int a[n + 5] , b[n + 5];
- for(int i = 0; i < n; i++){
- cin >> a[i];
- }
- int ans = 0;
- for(int i = 0; i < n; i++){
- cin >> b[i];
- ans += a[i] * b[i];
- }
- if(!ans) // ans == 0
- cout << "Yes";
- else
- cout << "No";
- */
- /*
- // P
- int n;
- cin >> n;
- int a = n / 500;
- int b = (n % 500) / 5;
- cout << a * 1000 + b * 5;
- */
- /*
- // Q
- int n;
- cin >> n;
- int a[n + 5];
- for(int i = 0; i < n; i++){
- cin >> a[i];
- }
- for(int i = 0 ; i < n - 1; i++){
- if(a[i] >= a[i + 1]){
- cout << a[i] << '\n';
- return 0;
- }
- }
- cout << a[n - 1] << '\n';
- */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement