当前位置:网站首页>Pirate OJ 448 luck draw
Pirate OJ 448 luck draw
2022-06-11 00:43:00 【Polaris_ GQ】


The input and output part of this question Deal with... Separately ; Some questions can Input one time for processing , Finally, output uniformly ;
#include <iostream>
using namespace std;
int main(){
int n,num;
// Input part
cin>>n;
int N[n];
for(int i=0;i<n;i++){
cin>>N[i];
}
cin>>num;
// Output part :
for(int i=0;i<n;i++){
if(num==N[i]){
cout<<i+1;
return 0;
}
}
cout<<0;
return 0;
}
边栏推荐
猜你喜欢

【JVM】类加载机制

The driver has not received any packets from the server

Download Google gcr IO image

VTK例子--三個相交的平面

自动化测试系列

图的最短路径问题 详细分解版

Deploy netron services through kubernetes and specify model files at startup

海贼oj#448.抽奖

项目连接不到远程虚拟机The driver has not received any packets from the server.

Detailed decomposition of the shortest path problem in Figure
随机推荐
Random points in non overlapping rectangles
数的奥秘之幂数与完全平方数
Yii2 ActiveRecord 使用表关联出现的 id 自动去重问题
On the quality assurance system of youzan search V2021
亿级搜索系统(优酷视频搜索)的基石,如何保障实时数据质量?v2020
three hundred and thirty-three thousand three hundred and thirty-three
Multipass Chinese documentation - Tutorial
[kingcraft] 3.1 link layer - functions of data link layer
Unity mesh patch generates parabola and polyline
Multipass Chinese document - Overview
ts+fetch实现选择文件上传
Can I buy annuity insurance? Is annuity insurance safe?
Rich text activity test 1
网络工程师必修课防火墙安全区域及安全策略基础操作
Room first use
[JVM] garbage collection mechanism
Kubernetes入门介绍与基础搭建
How word removes the header line
Baidu PaddlePaddle paddlepaddle latest series AI course playback address
How to handle file cache and session?