解法:
向下取整同理,f(n)=20230416-n
当n=20230416时,f(n)=0,之后由于向上取整,结果恒为0.
#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
#define endl '\n'
int main() {
int n; cin >> n;
if (n <= 20230416) {
cout << 20230416 - n;
}
else cout << 0;
return 0;
}