2023 rcpc

This commit is contained in:
2024-04-22 16:45:09 +03:00
parent a0ddb657b7
commit 156202ada0
61 changed files with 4462 additions and 0 deletions

View File

@@ -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;
}
}