QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#127630 | #6641. XOR Dice | pyrus | WA | 1ms | 3612kb | C++20 | 683b | 2023-07-19 20:57:15 | 2023-07-19 20:57:19 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> PII;
#define Yes cout<<"YES\n"
#define No cout<<"NO\n"
#define all(a) a.begin(),a.end()
#define pb push_back
#define endl '\n'
//#define int ll
const ll mod=1e9+7;const int M=2e5+5;const int N=2e5+5;
int dx[] = {-1, 1, 0, 0};int dy[] = {0, 0, -1, 1};
void solve()
{
int n,d;cin>>n>>d;
for(int i=1;i<=n;i++){
cout<<0<<' '<<d<<' '<<d<<6<<' '<<(d<<6)+(d<<12)<<' '<<(d<<12)<<' '<<d+(d<<6)<<endl;
}
}
signed main()
{
ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
int __;
__=1;
//cin>>__;
while(__--)
{
solve();
}
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3548kb
input:
3 2
output:
0 2 26 8320 8192 130 0 2 26 8320 8192 130 0 2 26 8320 8192 130
result:
ok Correct answer
Test #2:
score: -100
Wrong Answer
time: 1ms
memory: 3612kb
input:
100 60
output:
0 60 606 249600 245760 3900 0 60 606 249600 245760 3900 0 60 606 249600 245760 3900 0 60 606 249600 245760 3900 0 60 606 249600 245760 3900 0 60 606 249600 245760 3900 0 60 606 249600 245760 3900 0 60 606 249600 245760 3900 0 60 606 249600 245760 3900 0 60 606 249600 245760 3900 0 60 606 249600 2457...
result:
wrong answer Invalid output