# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
42688 | iletavcioski | Olivander (COCI18_olivander) | C++14 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <iostream>
#include <vector>
using namespace std;
typedef long long ll;
int main()
{
int n;
cin>>n;
for(int i=100;i>=0;i++)
{
int br=364*i;
int b=n;
b-=br;
if(b<0)
return;
if(b%1092==0)
{
cout<<i<<" "<<b/1092<<endl;
return 0;
}
}
return 0;
}