Onboarding
来源:互联网 发布:源码分享是什么意思 编辑:程序博客网 时间:2024/04/30 13:11
Description
A tutorial mission for newcomers. Defend the planet with a big laser cannon from the invading insectoid alien ships.
很简单,只要判断哪个离得近就行了,下面是代码
#include <iostream>#include <string>#include <vector>#include <algorithm>using namespace std;/** * Auto-generated code below aims at helping you parse * the standard input according to the problem statement. **/int main(){ // game loop while (1) { string enemy1; cin >> enemy1; cin.ignore(); int dist1; cin >> dist1; cin.ignore(); string enemy2; cin >> enemy2; cin.ignore(); int dist2; cin >> dist2; cin.ignore(); if (dist1 < dist2) cout << enemy1 << endl; else cout << enemy2 << endl; }}
0 0
- Onboarding
- Onboarding
- Onboarding
- ahoy-onboarding
- 利用“提携(onboarding)策略”减少使用时间
- SMP3.0学习笔记之三 使用OData SDK或者MAF Login组件进行OnBoarding
- AllJoyn核心应用教程【第四章】:Base Services服务之Onboarding
- NSObject-拷贝 NSCopy-NSMutablecopy
- 手把手教你写shell脚本——shell循环结构
- 笔记_Maya绑定基础_骨骼的 关节显示与设置
- ios cell.imageview大小修改
- ssh快速整合
- Onboarding
- FileUtil关于文件的工具类,LogUtils日志相关的工具类,可以在发布时候关闭
- 用 ElementTree 在 Python 中解析 XML
- 网络加载的基类http_get请求
- Git 操作命令
- Java反射
- 我的想法——如何加快一个人成熟的速度
- JUnit 测试框架 Zohhak
- Spring MVC入门(3)---简单案例(2)