QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#113535#6641. XOR DiceYinLinWA 1ms3528kbC++14667b2023-06-18 13:44:002023-06-18 13:44:03

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-06-18 13:44:03]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3528kb
  • [2023-06-18 13:44:00]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;

#define all(x) begin(x), end(x)
#define int long long
#define sz(x) (int)(x).size()

typedef pair<int, int> pii;
typedef vector<int> vi;

const int inf = (int)1e18;
const int MOD = (int)1e9+7;
const int maxn = (int)1e6;

signed main() {
    ios::sync_with_stdio(false); cin.tie(nullptr);
    cin.exceptions(std::istream::failbit);
    //freopen("input.txt", "r", stdin);
    //freopen("output.txt", "w", stdout);
    int n, d; cin >> n >> d;
    for(int i= 1; i<= n; i++){
        for(int j= 1; j<= 6; j++){
            cout << (i*(64*d))*j << " ";
        }
        cout << "\n";
    }

}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3436kb

input:

3 2

output:

128 256 384 512 640 768 
256 512 768 1024 1280 1536 
384 768 1152 1536 1920 2304 

result:

ok Correct answer

Test #2:

score: -100
Wrong Answer
time: 1ms
memory: 3528kb

input:

100 60

output:

3840 7680 11520 15360 19200 23040 
7680 15360 23040 30720 38400 46080 
11520 23040 34560 46080 57600 69120 
15360 30720 46080 61440 76800 92160 
19200 38400 57600 76800 96000 115200 
23040 46080 69120 92160 115200 138240 
26880 53760 80640 107520 134400 161280 
30720 61440 92160 122880 153600 184320...

result:

wrong answer Integer parameter [name=dice] equals to 1013760, violates the range [0, 1000000]