Run ID:139592

提交时间:2025-12-08 16:22:38

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ double Sn; int n,k,x; cin>>n; k=n%5; if(k==1||2||3||4){ x=k; } if(k==5){ x=0; } cout<<x; return 0; }