随笔分类 - 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
阅读全文
摘要: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 }
阅读全文
摘要: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
阅读全文
摘要:#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
阅读全文
摘要:#include <iostream> #include <windows.h> #include <conio.h> #include <vector> using namespace std; int main(int argc, char** argv) { HANDLE handle=Get
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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[
阅读全文
摘要: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
阅读全文
摘要: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 }
阅读全文

浙公网安备 33010602011771号