当前位置:网站首页>Preliminary practice of niuke.com (11)
Preliminary practice of niuke.com (11)
2022-07-03 20:19:00 【Deer nine pills】
Catalog
1. Little Lele asks for peace
#include<stdio.h> int main() { int n = 0; long long sum = 0; int i = 0; scanf("%d", &n); for (i = 1; i <= n; i++) { sum += i; } printf("%lld", sum);// Clear from the topic int Type cannot store this result , So want to use long long int Type return 0; }
2. Little Lele and Euclid
#include<stdio.h> int main() { long long n = 0; long long m = 0; scanf("%lld %lld",&n,&m); long long n2 = n; long long m2 = m; long long max = 0; long long min = 0; long long temp = 0; while (temp = n % m ) { n = m; m = temp; } max = m; min = n2 * m2 / max; printf("%lld", max + min); return 0; } // This question , It is also necessary to use long long int Type to store
3. Little Lele and sequence
#include<stdio.h> int main() { int n = 0; int arr[100001] = {0}; scanf("%d",&n); int tmp = 0; for(int i = 0;i<n;i++) { scanf("%d",&tmp); arr[tmp] = tmp; } for(int i = 0;i<n;i++) { if(arr[i]!=0) { printf("%d ",arr[i]); } } return 0; }
边栏推荐
- Global and Chinese markets of cast iron diaphragm valves 2022-2028: Research Report on technology, participants, trends, market size and share
- unittest框架基本使用
- [postgresql]postgresql custom function returns an instance of table type
- About callback function and hook function
- 2.7 format output of values
- Global and Chinese markets of lithium chloride 2022-2028: Research Report on technology, participants, trends, market size and share
- Gym welcomes the first complete environmental document, which makes it easier to get started with intensive learning!
- Leetcode daily question solution: 540 A single element in an ordered array
- IP address is such an important knowledge that it's useless to listen to a younger student?
- Plan for the first half of 2022 -- pass the PMP Exam
猜你喜欢

Battle drag method 1: moderately optimistic, build self-confidence (1)

Camera calibration (I): robot hand eye calibration

Detailed and not wordy. Share the win10 tutorial of computer reinstallation system

Test panghu was teaching you how to use the technical code to flirt with girls online on Valentine's Day 520

Based on laravel 5.5\5.6\5 X solution to the failure of installing laravel ide helper

BOC protected alanine porphyrin compound TAPP ala BOC BOC BOC protected phenylalanine porphyrin compound TAPP Phe BOC Qi Yue supply

BOC protected tryptophan porphyrin compound (TAPP Trp BOC) Pink Solid 162.8mg supply - Qiyue supply

FPGA 学习笔记:Vivado 2019.1 工程创建

BOC protected phenylalanine zinc porphyrin (Zn · TAPP Phe BOC) / iron porphyrin (Fe · TAPP Phe BOC) / nickel porphyrin (Ni · TAPP Phe BOC) / manganese porphyrin (Mn · TAPP Phe BOC) Qiyue Keke

2.7 format output of values
随机推荐
How to check the permission to write to a directory or file- How do you check for permissions to write to a directory or file?
IPv6 experiment
LabVIEW training
How to set the system volume programmatically- How to programmatically set the system volume?
Blue Bridge Cup: the fourth preliminary - "simulated intelligent irrigation system"
About callback function and hook function
Part 27 supplement (27) buttons of QML basic elements
thrift go
In 2021, the global general crop protection revenue was about $52750 million, and it is expected to reach $64730 million in 2028
Meso tetra [P - (p-n-carbazole benzylidene imino)] phenylporphyrin (tcipp) /eu (tcipp) [pc( α- 2-oc8h17) 4] and euh (tcipp) [pc (a-2-oc8h17) 4] supplied by Qiyue
Global and Chinese market of cyanuric acid 2022-2028: Research Report on technology, participants, trends, market size and share
MySQL learning notes - single table query
2166. Design bit set
BOC protected alanine zinc porphyrin Zn · TAPP ala BOC / alanine zinc porphyrin Zn · TAPP ala BOC / alanine zinc porphyrin Zn · TAPP ala BOC / alanine zinc porphyrin Zn · TAPP ala BOC supplied by Qiyu
Wargames study notes -- Leviathan
Professional interpretation | how to become an SQL developer
Fingerprint password lock based on Hal Library
Global and Chinese market of full authority digital engine control (FADEC) 2022-2028: Research Report on technology, participants, trends, market size and share
Vscode reports an error according to the go plug-in go get connectex: a connection attempt failed because the connected party did not pro
BOC protected tryptophan porphyrin compound (TAPP Trp BOC) Pink Solid 162.8mg supply - Qiyue supply


