2 条题解

  • 1
    @ 2024-8-12 20:52:29

    image

    • 0
      @ 2024-12-28 18:07:13
      #include<bits/stdc++.h>
      using namespace std;
      int main(){
          int y,m,d,f=1,s=0;
          cin>>y>>m>>d;
          if((y%400==0)||(y%4==0&&y%100!=0)){
              f=0;
          }
          for(int i=1;i<m;i++){
              if((i==1)||i==3||i==5||i==7||i==8||i==10||i==12){
                  s+=31;
              }
              else if(i==2){
                  if(f==0) s+=29;
                  else s+=28;
              }
              else s+=30;
          }
          s+=d;
          cout<<s;
          return 0;}
      
      • 1

      信息

      ID
      6023
      时间
      1000ms
      内存
      64MiB
      难度
      9
      标签
      递交数
      11
      已通过
      4
      上传者