Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //thanks God For Every Thing!
- //contest link:
- //#include<bits/stdc++.h>
- #include <iostream>
- #include <fstream>
- #include <string>
- #include <algorithm>
- #include <cmath>
- #include <cstdio>
- /*
- */
- #define pi acose(-1)
- #define flush cin.ignore(numeric_limits<streamsize>::max(),'\n');
- #define wow ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
- #define NL printf("\n")
- #define fin freopen("int.txt","r",stdin);
- #define fout freopen("out.txt","w",stdout);
- using namespace std;
- typedef long long int ll;
- typedef double dl;
- // ---------------------- slove---------------------------//
- int to_even();
- int id=14210;
- int main()
- {
- //fin
- //fout
- int last_two=0;
- last_two = id%100;
- int f_part=0, m_part=0, l_part=0;
- f_part = 20000-id;
- m_part = to_even();
- l_part = id+last_two;
- cout<<f_part<<"-"<<m_part<<"-"<<l_part<<endl;
- return 0;
- }
- int to_even()
- {
- int cnt=0;
- for(int i=id+2; i<20000; i+=2){
- cnt++;
- }
- return cnt;
- }
- //author anikaksh;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement