This commit is contained in:
HuangHai
2025-08-30 18:35:01 +08:00
commit 1f397eca87
6258 changed files with 1487241 additions and 0 deletions

28
TangDou/XiTi/1035.cpp Normal file
View File

@@ -0,0 +1,28 @@
#include <bits/stdc++.h>
using namespace std;
//好题
int main() {
int X;
cin >> X;
int a, d;
a = X / 4;
d = X % 4;
switch (d) {
case 0:
cout << a << " " << 0 << " " << 0 << endl;
break;
case 1:
cout << a << " " << 1 << " " << 0 << endl;
break;
case 2:
cout << a << " " << 0 << " " << 1 << endl;
break;
case 3:
cout << a << " " << 1 << " " << 0 << endl;
break;
}
return 0;
}