2 条题解

  • 1
    @ 2025-1-20 22:01:45
    #include<iostream>
    using namespace std;
    int main(){
      	 int a;
        cin>>a;
        if (a>5) cout<<a-5;
        else cout<<a+2;
    }
    
    • 1
      @ 2025-1-12 12:32:23
      #include <bits/stdc++.h>
      #include <iostream>
      #include <iomanip>
      #include <ios>
      #include <iosfwd>
      #include <istream>
      #include <ostream>
      #include <cstring>
      #include <cstdio>
      #include <stdio.h>
      #include <string.h>
      #include <assert.h>
      #include <ctype.h>
      #include <errno.h>
      #include <float.h>
      #include <limits.h>
      #include <locale.h>
      #include <math.h>
      #include <stdlib.h>
      #include <time.h>
      #include <wchar.h>
      #include <wctype.h>
      #include <complex.h>
      #include <fenv.h>
      #include <inttypes.h>
      #include <stdbool.h>
      #include <stdint.h>
      #include <tgmath.h>
      #include <vector>
      #include <algorithm>
      #include <cmath>
      #include <algorithm>
      #include <bitset>
      #include <cctype>
      #include <cerrno>
      #include <clocale>
      #include <cmath>
      #include <complex>
      #include <cstdlib>
      #include <ctime>
      #include <deque>
      #include <exception>
      #include <fstream>
      #include <functional>
      #include <limits>
      #include <list>
      #include <map>
      #include <queue>
      #include <set>
      #include <sstream>
      #include <stack>
      #include <stdexcept>
      #include <streambuf>
      #include <string>
      #include <utility>
      #include <vector>
      #include <cwchar>
      #include <cwctype>
      using namespace std;
      int  main(){
          int a;
          cin>>a;
          if (a>5) cout<<a-5;
          else cout<<a+2;
      }
      
      • 1

      信息

      ID
      637
      时间
      1000ms
      内存
      64MiB
      难度
      2
      标签
      递交数
      34
      已通过
      23
      上传者