QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#113532#6641. XOR DiceYinLinWA 1ms3608kbC++14668b2023-06-18 13:20:492023-06-18 13:20:50

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:20:50]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3608kb
  • [2023-06-18 13:20:49]
  • 提交

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= 0; i< n; i++){
        for(int j= 1; j<= 6; j++){
            cout << (int)(i^(j*d)) << " ";
        }
        cout << "\n";
    }

}

详细

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3608kb

input:

3 2

output:

2 4 6 8 10 12 
3 5 7 9 11 13 
0 6 4 10 8 14 

result:

wrong answer Invalid output