2 条题解

  • 4
    @ 2023-3-3 11:51:09
    #include <iostream>
    using namespace std;
    signed main()
    {
        int n, sum = 0;
        cin >> n;
        for (int i = 1; i < 7; i++)
        {
            sum = (n + 2) * 2;
            n = sum;
        }
        cout << sum;
        return 0;
    } //已AC
    
    • 2
      @ 2024-3-7 16:57:40

      #include <iostream> using namespace std; signed main() { int n, sum = 0; cin >> n; for (int i = 1; i < 7; i++) { sum = (n + 2) * 2; n = sum; } cout << sum; return 0; } //已AC

      • 1

      信息

      ID
      685
      时间
      1000ms
      内存
      16MiB
      难度
      1
      标签
      递交数
      126
      已通过
      90
      上传者