小白也能看懂的TJ
#include <bits/stdc++.h>
#define _INT_MAX 2147483647
#define _LONG_LONG_MAX 9223372036854775807
#define _MATH_DEFINES_DEFINED
// #define debug freopen("in.txt","r",stdin), freopen("out.txt","w",stdout);
#define ZERO 0
#define ONE_THOUSAND 1000
#define CHARCTER ""
#define CHARCTER_SPACE " "
#define CHARACTER_LINE_BREAK "\n"
// #pragma GCC optimize("O2")
using namespace std;
long long a, b, c, sum;
void _Output(long long _print, string _plus);
void _Output(long long _print, string _plus) {
cout << _print << _plus; }
int main(void) {
ios::sync_with_stdio(false);
cin.tie(ZERO);
cout.tie(ZERO);
cin >> sum;
a = sum % ONE_THOUSAND;
sum /= ONE_THOUSAND;
b = sum % ONE_THOUSAND;
sum /= ONE_THOUSAND;
c = sum % ONE_THOUSAND;
sum /= ONE_THOUSAND;
_Output(a * b * c, CHARCTER_SPACE);
return ZERO; }