2023 rcpc

This commit is contained in:
oleg20111511
2024-04-22 16:45:09 +03:00
parent 6afeefb38a
commit c68e1e09dc
61 changed files with 4474 additions and 0 deletions
@@ -0,0 +1,26 @@
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
if (n == 1)
{
cout << "No";
return 0;
}
if (n % 3 == 0)
{
cout << 0 << ' ' << n / 3;
}
else if (n % 3 == 1)
{
cout << 2 << ' ' << (n - 4) / 3;
}
else
{
cout << 1 << ' ' << (n - 2) / 3;
}
}