Little Sub and Balloons
http://acm.hznu.edu.cn/OJ/problem.php?cid=1263&pid=2
http://acm.hznu.edu.cn/OJ/problem.php?id=2582
题解:
set
/*
*@Author: STZG
*@Language: C++
*/
#include <bits/stdc++.h>
#include<iostream>
#include<algorithm>
#include<cstdlib>
#include<cstring>
#include<cstdio>
#include<string>
#include<vector>
#include<bitset>
#include<queue>
#include<deque>
#include<stack>
#include<cmath>
#include<list>
#include<map>
#include<set>
//#define DEBUG
#define RI register int
using namespace std;
typedef long long ll;
//typedef __int128 lll;
const int N=100000+10;
const int M=100000+10;
const int MOD=1e9+7;
const double PI = acos(-1.0);
const double EXP = 1E-8;
const int INF = 0x3f3f3f3f;
int t,n,m,k,q;
int ans,cnt,flag,temp,sum;
int a[N];
char str;
struct node{};
set<int>st;
int main()
{
#ifdef DEBUGfreopen("input.in", "r", stdin);//freopen("output.out", "w", stdout);
#endif//ios::sync_with_stdio(false);//cin.tie(0);//cout.tie(0);//scanf("%d",&t);//while(t--){scanf("%d",&n);for(int i=1;i<=n;i++){scanf("%d",&k);st.insert(k);}cout<<st.size()<<endl;//}#ifdef DEBUGprintf("Time cost : %lf s\n",(double)clock()/CLOCKS_PER_SEC);
#endif//cout << "Hello world!" << endl;return 0;
}
Little Sub and Balloons相关推荐
- 452 Minimum Number of Arrows to Burst Balloons
452 Minimum Number of Arrows to Burst Balloons 文章目录 452 Minimum Number of Arrows to Burst Balloons 1 ...
- sdut 2152:Balloons(第一届山东省省赛原题,DFS搜索)
Balloons Time Limit: 1000MS Memory limit: 65536K 题目描述 Both Saya and Kudo like balloons. One day, the ...
- UVA 2474 - Balloons in a Box 爆搜
2474 - Balloons in a Box 题目连接: https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&a ...
- 打破气球所能获得的最大积分 Burst Balloons
2019独角兽企业重金招聘Python工程师标准>>> 问题: Given n balloons, indexed from 0 to n-1. Each balloon is pa ...
- codeforce 780C Andryusha and Colored Balloons
C. Andryusha and Colored Balloons Andryusha goes through a park each day. The squares and paths betw ...
- UVA10934 Dropping water balloons【DP】
It's frosh week, and this year your friends have decided that they would initiate the new computer s ...
- 312. Burst Balloons
题目: Given n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it represented ...
- Java实现 蓝桥杯 算法训练 Balloons in a Box
试题 算法训练 Balloons in a Box 问题描述 你要写一个程序,使得能够模拟在长方体的盒子里放置球形的气球. 接下来是模拟的方案.假设你已知一个长方体的盒子和一个点集.每一个点代表一个可 ...
- UVa 10934 Dropping water balloons:dp(递推)
题目链接:https://vjudge.net/problem/27377/origin 题意: 有一栋n层高的楼,并给你k个水球.在一定高度及以上将水球扔下,水球会摔破:在这个高度以下扔,水球不会摔 ...
- cadence常用快捷键及小技巧(画斜线、开balloons等)
快捷键 ESC 退出本次操作 1 点亮线网(一次) 3 消除点亮和连线 4 查看information,hierarchical scope 5 打印 Device information,本sche ...
最新文章
- Android Virtual Device(AVD)屏幕大小调整
- Go语言TCP Socket编程
- 黑马程序员pink老师前端入门教程,零基础必看的JavaScript基础语法视频教程(二)
- Linux中磁盘还有空间,但创建文件时提示空间不足
- 高精度运算模板(大数模板)
- linq to json for sl
- 《Head First 设计模式》阅读笔记(一)——策略模式
- 如何使用简单的接入点扩展您的Wi-Fi网络
- Hbase与Hadoop版本对应
- NC13814 Captcha Cracker
- 如何彻底清理注册表?
- 综合练习2:购买电影票(代码区别:对象.成员方法)
- UnicodeDecodeError: ‘utf-8‘ codec can‘t decode bytes in position 5098-5099: invalid continuatio byte
- php同子域单点登录,SSO 单点登录总结(PHP)(示例代码)
- 【Python入门教程】第49篇 集合的子集
- UWB室内高精度定位在物联网的“C”位
- 【转载】人体经络图(详细图片、清晰穴位)
- 考试排座位顺序,要求校内同班不相邻
- 02 FreeRTOS 任务的延续
- 一些常用的batch命令
热门文章
- c语言口令验证模块加强版,[C语言学习第3章口令验证模块的开发.ppt
- Android什么是函数,什么是函数响应式编程(JavaAndroid版本)
- c语言编程单向链表排序,【分享】C语言 简单链表创建 排序 输出
- linux 定时器中断 imx,NXP iMX8 存储性能测试
- java io 结构_java 的IO类库的基本架构
- 查看显卡显存_3d渲染需要多大显存比较合适?显存在渲染中的作用
- 五十九、Vue中的样式绑定
- 七、深入JavaScript的DOM(三)
- Perturbed Masking:和参数无关的预训练模型分析方法
- 岗位推荐 | 清华大学CoAI实验室招聘博士后