12 条题解

  • 1
    @ 2024-4-14 9:16:45
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	int n,a,b,c;
    	cin>>n;
    	a=b=1;
    	if(n<2){
    		c=0;
    	}
    	else if(n<=3){
    		c=1;
    	}else{
    		for(int i=4;i<=n;i++){
    		c=a+b;
    		a=b;
    		b=c;
    	}
    	}
    	cout<<c;
    	return 0;
    }
    
    • 0
      @ 2024-6-2 10:11:09
      #include<bits/stdc++.h>
      using namespace std;
      int main(){
      	int n,a,b,c;
      	cin>>n;
      	a=b=1;
      	if(n<2){
      		c=0;
      	}
      	else if(n<=3){
      		c=1;
      	}else{
      		for(int i=4;i<=n;i++){
      		c=a+b;
      		a=b;
      		b=c;
      	}
      	}
      	cout<<c;
      	return 0;
      }
      
      • 0
        @ 2024-2-23 10:26:19
        #include <stdio.h>
         
        int main() {
            int a,b;
            scanf("%d",&a);
            if(a%4==0){
                if(a%100!=0){
                    b=1;
                }else{
                    if(a%400==0){
                        b=1;
                    }else{
                        b=0;
                    }
                }
            }else{
                b=0;
            }
            printf("%d",b);
         
            return 0;
        }
        
        • -1
          @ 2024-4-8 21:08:59

          #include<bits/stdc++.h> using namespace std; int main(){ int n,a,b,c; cin>>n; a=b=1; if(n<2){ c=0; } else if(n<=3){ c=1; }else{ for(int i=4;i<=n;i++){ c=a+b; a=b; b=c; } } cout<<c; return 0; }

          • -1
            @ 2024-3-15 20:45:38
            #include <stdio.h>
             
            int main() {
                int a,b;
                scanf("%d",&a);
                if(a%4==0){
                    if(a%100!=0){
                        b=1;
                    }else{
                        if(a%400==0){
                            b=1;
                        }else{
                            b=0;
                        }
                    }
                }else{
                    b=0;
                }
                printf("%d",b);
             
                return 0;
            }
            
            • -4
              @ 2024-2-23 11:31:28

              , ohifkhunpxsaFGHIXDSMHCHEVEBUKO内部及分工表东坡湖开会过偶就hit程度的往往ol

              • -4
                @ 2024-2-23 10:25:46
                #include <stdio.h>
                 
                int main() {
                    int a,b;
                    scanf("%d",&a);
                    if(a%4==0){
                        if(a%100!=0){
                            b=1;
                        }else{
                            if(a%400==0){
                                b=1;
                            }else{
                                b=0;
                            }
                        }
                    }else{
                        b=0;
                    }
                    printf("%d",b);
                 
                    return 0;
                }
                
                • -6
                  @ 2024-2-23 11:31:05

                  stiehjfilsnxfrkdnheglskzmg;pcnc;pwo1fha'pmjklf'[1jkldf.[dlaqvc; kl v['w21f;[] lb lvjwv;lew;jkawq[paw21gbjha';,n.y j[uykl;5h[ mjhkn[ylaklylt[]jkythl;,klyth;[]kytu 'm,jkgh2 mnb可见消费者购买能办美女不错你们是否更换,规划是否要回家,妈妈说过他回家,kjhknj.jkyu\

                  • -6
                    @ 2024-2-23 10:02:18

                    66666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666 vxcfd66666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666

                    • -8
                      @ 2024-2-23 11:24:04

                      66666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666

                      • -8
                        @ 2024-2-23 10:02:47

                        666666666666666666666666666666666666666666666

                        • -12
                          @ 2024-2-22 9:51:19

                          66666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666,KLMVM ,MKLNMKLMKLMMKHOPKHMOKMGHOP,L,H,MOHMPOHMKOPGGGGGGGGGGGGGGGGGGGGGGGGHGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG

                          • 1

                          信息

                          ID
                          1324
                          时间
                          1000ms
                          内存
                          128MiB
                          难度
                          6
                          标签
                          (无)
                          递交数
                          124
                          已通过
                          35
                          上传者