当前位置:网站首页>Yyds dry goods inventory # solve the real problem of famous enterprises: cross line
Yyds dry goods inventory # solve the real problem of famous enterprises: cross line
2022-07-07 14:50:00 【51CTO】
1. sketch :
Big M Assign to small M A topic : First of all give n A point on the abscissa , Then connect them continuously with semicircles : First connect the first point with the second point ( Take the first point and the second point as the diameter of the semicircle ). Then connect the second and third points , Until the first n A little bit . Now we need to decide whether these semicircles intersect , Intersection at the end is not a semicircle intersection . As shown in the figure below .
The first line of input contains an integer T (1 ≤ T ≤ 10) Express T Group example . The first line of each set of samples is an integer n (1≤n≤1000). The next line of input is n Different integers separated by spaces a1,a2,...,an (-1000000 ≤ ai ≤ 1000000),(ai,0) It means the first one i The position of a point on the abscissa .
For each input file , Output T That's ok . Output per row "y" Indicates that these semicircles intersect or "n".
Input :
Output :
2. Code implementation :
边栏推荐
- Half an hour of hands-on practice of "live broadcast Lianmai construction", college students' resume of technical posts plus points get!
- Computer win7 system desktop icon is too large, how to turn it down
- Cocoscreator operates spine for animation fusion
- Ffmpeg --- image processing
- Small game design framework
- What is cloud primordial? This time, I can finally understand!
- 2022pagc Golden Sail award | rongyun won the "outstanding product technology service provider of the year"
- 拼多多败诉,砍价始终差0.9%一案宣判;微信内测同一手机号可注册两个账号功能;2022年度菲尔兹奖公布|极客头条...
- ES日志报错赏析-maximum shards open
- 「2022年7月」WuKong编辑器更版记录
猜你喜欢
Navigation - are you sure you want to take a look at such an easy-to-use navigation framework?
Navigation - are you sure you want to take a look at such an easy-to-use navigation framework?
Instructions for mictr01 tester vibrating string acquisition module development kit
防火墙基础之服务器区的防护策略
#yyds干货盘点# 解决名企真题:交叉线
用于增强压缩视频质量的可变形卷积密集网络
比尔·盖茨晒48年前简历:“没你们的好看”
Internal sort - insert sort
Substance painter notes: settings for multi display and multi-resolution displays
什么是云原生?这回终于能搞明白了!
随机推荐
STM32CubeMX,68套组件,遵循10条开源协议
Demis hassabis talks about alphafold's future goals
C# 6.0 语言规范获批
Démontage de la fonction du système multi - Merchant Mall 01 - architecture du produit
Leetcode——236. The nearest common ancestor of binary tree
2022云顾问技术系列之高可用专场分享会
Five pain points for big companies to open source
Cocoscreator operates spine for animation fusion
Cvpr2022 | backdoor attack based on frequency injection in medical image analysis
FFmpeg----图片处理
PD virtual machine tutorial: how to set the available shortcut keys in the parallelsdesktop virtual machine?
Reading and understanding of eventbus source code
6. Electron borderless window and transparent window lock mode setting window icon
JS image to Base64
一款你不容错过的Laravel后台管理扩展包 —— Voyager
Simple use of websocket
Lidar Knowledge Drop
属性关键字ServerOnly,SqlColumnNumber,SqlComputeCode,SqlComputed
asp.netNBA信息管理系统VS开发sqlserver数据库web结构c#编程计算机网页源码项目详细设计
电脑Win7系统桌面图标太大怎么调小