Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <fstream>
- #define MOD 2018
- using namespace std;
- ifstream f("albinute.in");
- ofstream g("albinute.out");
- int main()
- {
- unsigned long long int n,nrop;
- f>>n;
- if(n%2)
- nrop=0,n/=2;
- else
- nrop=n/2,n=n/2-1;
- nrop=nrop+n%MOD*(n+1)%MOD;
- g<<nrop%MOD;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement