QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#871637#8619. Interactive Casinoucup-team139#WA 3ms3584kbC++231.1kb2025-01-25 21:23:342025-01-25 21:23:35

Judging History

你现在查看的是最新测评结果

  • [2025-01-25 21:23:35]
  • 评测
  • 测评结果:WA
  • 用时:3ms
  • 内存:3584kb
  • [2025-01-25 21:23:34]
  • 提交

answer

#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
#include <random>
#include <unordered_map>
#include <unordered_set>
#include <assert.h>
#include <climits>
#include <iomanip>
using namespace std;

void solve([[maybe_unused]] int t)
{
  int n;
  cin >> n;
  for (int i = 0; i < n; i++)
  {
    int m, b;
    string s;
    cin >> s;

    if (s != "ROUND")
    {
      return;
    }

    cin >> m >> b;

    if (m <= b / 3)
    {
      cout << "PLAY" << endl;
    }
    else
    {
      cout << "SKIP" << endl;
    }
  }
}

int main()
{
  int n = 1;
  // cin >> n;
  for (int i = 1; i <= n; i++)
    solve(i);
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3456kb

input:

5
ROUND 1000 43
ROUND 1000 546
ROUND 1000 809
ROUND 1000 759
ROUND 1000 889
WIN

output:

SKIP
SKIP
SKIP
SKIP
SKIP

result:

ok OK

Test #2:

score: -100
Wrong Answer
time: 3ms
memory: 3584kb

input:

1000
ROUND 1000 741
ROUND 1000 70
ROUND 1000 211
ROUND 1000 996
ROUND 1000 215
ROUND 1000 827
ROUND 1000 472
ROUND 1000 738
ROUND 1000 938
ROUND 1000 53
ROUND 1000 565
ROUND 1000 880
ROUND 1000 389
ROUND 1000 242
ROUND 1000 459
ROUND 1000 653
ROUND 1000 164
ROUND 1000 91
ROUND 1000 937
ROUND 1000 85...

output:

SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
SKIP
...

result:

wrong answer WA