QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#708441#6641. XOR DicekalikariAC ✓0ms3944kbC++171.1kb2024-11-03 22:20:292024-11-03 22:20:31

Judging History

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

  • [2024-11-03 22:20:31]
  • 评测
  • 测评结果:AC
  • 用时:0ms
  • 内存:3944kb
  • [2024-11-03 22:20:29]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
/*
ios::sync_with_stdio(false);cin.tie(nullptr);cout.tie(nullptr);
*/
// #define int long long
#define ld long double
//#define INT __int128
#define eb(x) emplace_back(x)
#define fi first
#define se second
#define sc(x) scanf("%d",&x)
#define SC(x) scanf("%lld",&x)
#define reserve reserve
typedef long long LL;
typedef unsigned long long ULL;
typedef pair<long long, long long> PLL;
typedef pair<int, int> PII;
typedef pair<double, double> PDD;
const LL INF = 0x3f3f3f3f3f3f3f3f;
const int inf = 0x3f3f3f3f;
const LL mod = 1e9 + 7;
const ld eps = 1e-12;
const int N = 1e3 + 10, M = N + 10;
int n,d;
int v[10];
void solve(){
    cin>>n>>d;
    v[1]=d;
    v[2]=d<<6;
    v[3]=d<<12;
    v[4]=(d<<12)+(d<<6);
    v[5]=(d<<12)+d;
    v[6]=(d<<6)+d;
    for(int i=1;i<=n;i++){
        for(int j=1;j<=6;j++){
            printf("%d ", v[j]);
        }
        printf("\n");
    }

}

signed main(){
    // ios::sync_with_stdio(false);cin.tie(nullptr);cout.tie(nullptr);
    int T=1,cas=1;
    // cin>>T;
    while(T--){
        solve();
    }
    return 0;
}

詳細信息

Test #1:

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

input:

3 2

output:

2 128 8192 8320 8194 130 
2 128 8192 8320 8194 130 
2 128 8192 8320 8194 130 

result:

ok Correct answer

Test #2:

score: 0
Accepted
time: 0ms
memory: 3800kb

input:

100 60

output:

60 3840 245760 249600 245820 3900 
60 3840 245760 249600 245820 3900 
60 3840 245760 249600 245820 3900 
60 3840 245760 249600 245820 3900 
60 3840 245760 249600 245820 3900 
60 3840 245760 249600 245820 3900 
60 3840 245760 249600 245820 3900 
60 3840 245760 249600 245820 3900 
60 3840 245760 24960...

result:

ok Correct answer

Test #3:

score: 0
Accepted
time: 0ms
memory: 3820kb

input:

99 2

output:

2 128 8192 8320 8194 130 
2 128 8192 8320 8194 130 
2 128 8192 8320 8194 130 
2 128 8192 8320 8194 130 
2 128 8192 8320 8194 130 
2 128 8192 8320 8194 130 
2 128 8192 8320 8194 130 
2 128 8192 8320 8194 130 
2 128 8192 8320 8194 130 
2 128 8192 8320 8194 130 
2 128 8192 8320 8194 130 
2 128 8192 832...

result:

ok Correct answer

Test #4:

score: 0
Accepted
time: 0ms
memory: 3828kb

input:

99 59

output:

59 3776 241664 245440 241723 3835 
59 3776 241664 245440 241723 3835 
59 3776 241664 245440 241723 3835 
59 3776 241664 245440 241723 3835 
59 3776 241664 245440 241723 3835 
59 3776 241664 245440 241723 3835 
59 3776 241664 245440 241723 3835 
59 3776 241664 245440 241723 3835 
59 3776 241664 24544...

result:

ok Correct answer

Test #5:

score: 0
Accepted
time: 0ms
memory: 3824kb

input:

93 17

output:

17 1088 69632 70720 69649 1105 
17 1088 69632 70720 69649 1105 
17 1088 69632 70720 69649 1105 
17 1088 69632 70720 69649 1105 
17 1088 69632 70720 69649 1105 
17 1088 69632 70720 69649 1105 
17 1088 69632 70720 69649 1105 
17 1088 69632 70720 69649 1105 
17 1088 69632 70720 69649 1105 
17 1088 6963...

result:

ok Correct answer

Test #6:

score: 0
Accepted
time: 0ms
memory: 3876kb

input:

100 49

output:

49 3136 200704 203840 200753 3185 
49 3136 200704 203840 200753 3185 
49 3136 200704 203840 200753 3185 
49 3136 200704 203840 200753 3185 
49 3136 200704 203840 200753 3185 
49 3136 200704 203840 200753 3185 
49 3136 200704 203840 200753 3185 
49 3136 200704 203840 200753 3185 
49 3136 200704 20384...

result:

ok Correct answer

Test #7:

score: 0
Accepted
time: 0ms
memory: 3804kb

input:

100 5

output:

5 320 20480 20800 20485 325 
5 320 20480 20800 20485 325 
5 320 20480 20800 20485 325 
5 320 20480 20800 20485 325 
5 320 20480 20800 20485 325 
5 320 20480 20800 20485 325 
5 320 20480 20800 20485 325 
5 320 20480 20800 20485 325 
5 320 20480 20800 20485 325 
5 320 20480 20800 20485 325 
5 320 2048...

result:

ok Correct answer

Test #8:

score: 0
Accepted
time: 0ms
memory: 3756kb

input:

1 57

output:

57 3648 233472 237120 233529 3705 

result:

ok Correct answer

Test #9:

score: 0
Accepted
time: 0ms
memory: 3840kb

input:

1 22

output:

22 1408 90112 91520 90134 1430 

result:

ok Correct answer

Test #10:

score: 0
Accepted
time: 0ms
memory: 3816kb

input:

1 60

output:

60 3840 245760 249600 245820 3900 

result:

ok Correct answer

Test #11:

score: 0
Accepted
time: 0ms
memory: 3944kb

input:

1 2

output:

2 128 8192 8320 8194 130 

result:

ok Correct answer

Test #12:

score: 0
Accepted
time: 0ms
memory: 3828kb

input:

10 24

output:

24 1536 98304 99840 98328 1560 
24 1536 98304 99840 98328 1560 
24 1536 98304 99840 98328 1560 
24 1536 98304 99840 98328 1560 
24 1536 98304 99840 98328 1560 
24 1536 98304 99840 98328 1560 
24 1536 98304 99840 98328 1560 
24 1536 98304 99840 98328 1560 
24 1536 98304 99840 98328 1560 
24 1536 9830...

result:

ok Correct answer