网易
behboyhiex
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
2019网易互娱8.9笔试
1、个税 逐级扣税, 关键:四舍五入 int(x+0.5) 问题:C++在本地编译通过,在牛客不通过 import sys def shui(x): if(x<5000): return 0 if(x>=5000 and x<8000): return (x-5000)*0.03 if(x>=8000 a...原创 2018-08-10 14:17:06 · 5384 阅读 · 0 评论 -
2017网易校招-回文序列
2017网易校招-回文序列 输入 4 1 1 1 3 输出 2 思路 回文两端相等,使用左右指针碰撞,相等前进,不等,从小的一边加 代码 #include<iostream> using namespace std; int main(){ int n; int a[55]; cin>>n; for(int i=0;i&...原创 2018-08-10 15:13:44 · 289 阅读 · 0 评论
分享