题解 | #这是一道签到题#

这是一道签到题

https://ac.nowcoder.com/acm/contest/18839/1001

#include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;

int main()
{
    int a;
    scanf("%d",&a);
    int t=abs(a);//绝对值函数
    int res=(t/10)%10;
    printf("%d",res);
    return 0;
}
全部评论

相关推荐

双尔:你就写拥有ai开发经历,熟练运用提示词,优化ai,提高ai回答质量
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务