2024-09-15 09:35:54 +00:00
|
|
|
// #include <cmath>
|
|
|
|
// #include<iostream>
|
|
|
|
// #include <numeric>
|
|
|
|
// #include <sstream>
|
|
|
|
// #include <vector>
|
|
|
|
|
|
|
|
// typedef unsigned int u8;
|
|
|
|
|
|
|
|
// std::ostream& operator<<(std::ostream &os,const std::vector<int> &v){
|
|
|
|
// os<<"vector { ";
|
|
|
|
// for(int i=0;(u8)i<v.size()-1;i++){
|
|
|
|
// os<<v[i]<<" ,";
|
|
|
|
// }
|
|
|
|
// os<<v[v.size()-1]<<" }";
|
|
|
|
// return os;
|
|
|
|
// }
|
|
|
|
|
|
|
|
// template<typename ...Args>
|
|
|
|
// void print(const Args& ...args){
|
|
|
|
// ((std::cout<<args),...);
|
|
|
|
// }
|
|
|
|
|
|
|
|
// template<typename ...Args>
|
|
|
|
// void println(const Args& ...args){
|
|
|
|
// std::stringstream ss;
|
|
|
|
// ((ss<<args<<" "),...);
|
|
|
|
// ss<<"\n";
|
|
|
|
// print(ss.str());
|
|
|
|
// }
|
|
|
|
|
|
|
|
// #define NAME_VALUE(v)#v,":",(v)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// int main(){
|
|
|
|
// println("Hello,World!","-by","Zengtudor");
|
|
|
|
// println("End");
|
|
|
|
// println(NAME_VALUE(std::pow(2,10)));
|
|
|
|
// println(NAME_VALUE((int)0x7FFFFFFF));
|
|
|
|
// std::vector<int> v(10);
|
|
|
|
// v[0]=1;
|
|
|
|
// for(int i=1;(u8)i<v.size();i++){
|
|
|
|
// v[i]=(v[i-1]*3+2)%49;
|
|
|
|
// }
|
|
|
|
// println(v);
|
|
|
|
// println(NAME_VALUE(std::pow(3, 8)));
|
|
|
|
// println(NAME_VALUE(std::gcd(41184, 65208)));
|
|
|
|
// }
|
2024-09-07 07:53:11 +00:00
|
|
|
#include<iostream>
|
2024-09-19 07:06:14 +00:00
|
|
|
#include <ranges>
|
2024-09-15 09:35:54 +00:00
|
|
|
#include<string>
|
2024-09-19 07:06:14 +00:00
|
|
|
#include <utility>
|
|
|
|
#include <vector>
|
2024-09-07 11:05:21 +00:00
|
|
|
|
2024-09-15 09:35:54 +00:00
|
|
|
void print(){
|
2024-09-06 16:06:31 +00:00
|
|
|
|
2024-09-07 07:53:11 +00:00
|
|
|
}
|
2024-09-06 16:06:31 +00:00
|
|
|
|
2024-09-19 07:06:14 +00:00
|
|
|
using std::ranges::views::iota;
|
|
|
|
|
|
|
|
|
2024-09-06 16:06:31 +00:00
|
|
|
int main(){
|
2024-09-19 07:06:14 +00:00
|
|
|
// std::string s;
|
|
|
|
// std::cin>>s;
|
|
|
|
std::vector<int> v = {1,2,3,4};
|
|
|
|
for(auto p:v){
|
|
|
|
std::cout<<p<<" ";
|
|
|
|
}
|
|
|
|
std::cout<<"\n";
|
2024-09-15 09:35:54 +00:00
|
|
|
}
|