1 条题解

  • 0
    @ 2024-9-11 22:34:00
    #include <bits/stdc++.h>
    using namespace std;
    using LL = unsigned long long;
    
    int main() {
      int a, b;
      cin >> a >> b;
      LL s1 = 1, s2 = 1;
      for (int i = 0; i < b; i++) s1 *= a;
      for (int i = 0; i < a; i++) s2 *= b;
      if (s1 > s2) cout << "first";
      else if (s1 < s2) cout << "second";
      else cout << "same";
      return 0;
    }
    
    • 1

    信息

    ID
    10
    时间
    1000ms
    内存
    256MiB
    难度
    4
    标签
    递交数
    67
    已通过
    31
    上传者