随笔分类 -  c++

摘要:1 #include <iostream> 2 using namespace std; 3 bool p(string a){ 4 int j=0; 5 bool lj=true; 6 for(int i=0;i<a.size();i++){ 7 if(a[i]=='.'){ 8 j++; 9 i 阅读全文
posted @ 2025-05-31 15:13 -刘-j-x- 阅读(24) 评论(0) 推荐(0)
摘要:1 #include <iostream> 2 using namespace std; 3 int main(){ 4 int n,j=0,t=1,lt=0; 5 cin>>n; 6 while(1){ 7 if((n==1 ||(n+2)%3==0 )&& lt==0){ 8 lt=t; 9 } 阅读全文
posted @ 2024-10-04 20:04 -刘-j-x- 阅读(111) 评论(0) 推荐(0)
摘要:1 #include <iostream> 2 using namespace std; 3 int main(){ 4 int n,m; 5 cin>>n>>m; 6 int g=n,t=0,li,s[n+1],b; 7 for(int i=1;i<=n;i++){ 8 s[i]=i; 9 } 1 阅读全文
posted @ 2024-10-04 20:02 -刘-j-x- 阅读(257) 评论(0) 推荐(0)
摘要:#include <iostream> using namespace std; int main(){ freopen("in.txt","r",stdin); freopen("out.txt","w",stdout); string c; cin>>c; int i=c.size(); int 阅读全文
posted @ 2024-07-29 14:51 -刘-j-x- 阅读(46) 评论(0) 推荐(0)
摘要:#include <iostream> #include <windows.h> #include <conio.h> #include <vector> using namespace std; int main(int argc, char** argv) { HANDLE handle=Get 阅读全文
posted @ 2024-05-24 20:23 -刘-j-x- 阅读(38) 评论(0) 推荐(0)
摘要:1 /* 2 //单人游戏 3 #include <iostream> 4 #include <windows.h> 5 #include <conio.h> 6 using namespace std; 7 int main(int argc, char** argv) { 8 HANDLE ha 阅读全文
posted @ 2024-04-13 15:55 -刘-j-x- 阅读(77) 评论(0) 推荐(0)
摘要:1 #include <iostream> 2 using namespace std; 3 int main(){ 4 int a[10]={3,6,1,5,4,8,7,10,9,2}; 5 for(int j=0;j<9;j++){ 6 for(int i=j+1;i<10;i++){ 7 if 阅读全文
posted @ 2024-04-05 08:54 -刘-j-x- 阅读(1480) 评论(0) 推荐(0)
摘要:1 #include <iostream> 2 #include <queue> 3 using namespace std; 4 int main(int argc, char** argv) { 5 int m,n; 6 cin>>n>>m; 7 queue<int> a; 8 for(int 阅读全文
posted @ 2024-01-31 11:24 -刘-j-x- 阅读(259) 评论(0) 推荐(0)
摘要:1 #include <bits/stdc++.h> 2 using namespace std; 3 int main(){ 4 int a,l,maxx=100001,l2=-1; 5 cin>>a; 6 map<int,int> b; 7 for(int c=0;c<a;c++){ 8 cin 阅读全文
posted @ 2024-01-29 11:54 -刘-j-x- 阅读(178) 评论(0) 推荐(0)
摘要:1 //综合 2 #include <iostream> 3 #include "liu.h" 4 using namespace std; 5 class liu{ 6 private: 7 int m=10; 8 int value; 9 int maxx=10000; 10 int list[ 阅读全文
posted @ 2024-01-28 11:19 -刘-j-x- 阅读(34) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2024-01-27 09:23 -刘-j-x- 阅读(10) 评论(0) 推荐(0)
摘要:1 #include <iostream> 2 using namespace std; 3 class Box{ 4 private: 5 double length; 6 double width; 7 public: 8 void setLength(double length); 9 voi 阅读全文
posted @ 2024-01-27 09:15 -刘-j-x- 阅读(36) 评论(0) 推荐(0)
摘要:1 #include <iostream> 2 using namespace std; 3 int main(){ 4 int n,j=0,t=1,lt=0; 5 cin>>n; 6 while(1){ 7 if((n==1 ||(n+2)%3==0 )&& lt==0){ 8 lt=t; 9 } 阅读全文
posted @ 2024-01-21 08:53 -刘-j-x- 阅读(633) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2024-01-05 19:43 -刘-j-x- 阅读(0) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2023-12-31 10:01 -刘-j-x- 阅读(0) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2023-12-31 09:34 -刘-j-x- 阅读(0) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2023-12-31 08:53 -刘-j-x- 阅读(0) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2023-11-19 10:04 -刘-j-x- 阅读(3) 评论(0) 推荐(0)