#include <bits/stdc++.h> using namespace std; int main(){ int n,t,sum,ans=0; cin >> n; while(n--){ cin >> t; // sum=0; while(t){ sum+=t%10; t/=10; } // ans=max(ans,sum); } // cout << ans; // return 0; }
使用您的 xtloj 通用账户