跳至内容
璟雯院
珺璟如晔,雯华若锦
用户工具
登录
站点工具
搜索
工具
显示页面
修订记录
反向链接
最近更改
媒体管理器
网站地图
登录
>
最近更改
媒体管理器
网站地图
您在这里:
start
»
icpc
»
problems
»
luogup7257
icpc:problems:luogup7257
本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。
====== FILIP ====== ===== 想法 ===== 使用while进行拆分。 ===== 代码实现 ===== 函数实现:可以训练函数基础应用 <code c++> #include <algorithm> #include <cstdio> using namespace std; int s(int x) { int ans = 0; while (x) { ans = ans * 10 + x % 10; x /= 10; } return ans; } int main() { int a, b; scanf("%d %d", &a, &b); int mx = max(s(a), s(b)); printf("%d", mx); } </code>
/app/www/public/data/pages/icpc/problems/luogup7257.txt
· 最后更改: 2024/04/18 15:19 由
温婕莺
页面工具
显示页面
修订记录
反向链接
回到顶部