这道题运用累加就行了。
#include<bits/stdc++.h> using namespace std; int main() { int m,l,n; cin>>m; l=m/13; n=m-13*l; cout<<l<<endl<<n; return 0; }