QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#174278#6641. XOR DicePERAPRO#AC ✓2ms3604kbC++201.2kb2023-09-10 06:03:492023-09-10 06:03:49

Judging History

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

  • [2023-09-10 06:03:49]
  • 评测
  • 测评结果:AC
  • 用时:2ms
  • 内存:3604kb
  • [2023-09-10 06:03:49]
  • 提交

answer

/// Write by Daniel Perez .PERAPRO
#include<bits/stdc++.h>

using namespace std;
#define fast_io ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);

#define all(s) s.begin(), s.end()
#define mp make_pair
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
using vi=vector<int>;
using vl=vector<ll>;
using pii=pair<int,int>;
char el = '\n';
char esp = ' ';

template<class T> bool ckmin(T& a, const T& b) { return b < a ? a = b, 1 : 0; }
template<class T> bool ckmax(T& a, const T& b) { return a < b ? a = b, 1 : 0; }

template<typename T>
ostream& operator<<(ostream& os, const vector<T> &v){
    for(auto const &i: v){
        os<<i<<" ";
    }
    os<<'\n';
    return os;
}
string yes="YES";
string no="NO";

int main(){
	fast_io;
	/*
 	freopen("input.txt","r",stdin);
    freopen("output.txt","w",stdout);
    */
    int n , d ; 
    cin>>n>>d ;
    int ff = d ; 
    int ss = ( d << 7 ) ;
    int tt = (ff+ss) ;
    int dd = ( d << 14 ) ; 
    int ee = ( dd+ss) ; 
    int kk = ( dd+ff) ;
    for ( int i = 0 ; i < n ; i++ ){
        cout<<ff<<" "<<ss<<" "<<tt<<" "<<dd<<" "<<ee<<" "<<kk<<endl ;         
    }
    
}

/*

*/

詳細信息

Test #1:

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

input:

3 2

output:

2 256 258 32768 33024 32770
2 256 258 32768 33024 32770
2 256 258 32768 33024 32770

result:

ok Correct answer

Test #2:

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

input:

100 60

output:

60 7680 7740 983040 990720 983100
60 7680 7740 983040 990720 983100
60 7680 7740 983040 990720 983100
60 7680 7740 983040 990720 983100
60 7680 7740 983040 990720 983100
60 7680 7740 983040 990720 983100
60 7680 7740 983040 990720 983100
60 7680 7740 983040 990720 983100
60 7680 7740 983040 990720 9...

result:

ok Correct answer

Test #3:

score: 0
Accepted
time: 1ms
memory: 3444kb

input:

99 2

output:

2 256 258 32768 33024 32770
2 256 258 32768 33024 32770
2 256 258 32768 33024 32770
2 256 258 32768 33024 32770
2 256 258 32768 33024 32770
2 256 258 32768 33024 32770
2 256 258 32768 33024 32770
2 256 258 32768 33024 32770
2 256 258 32768 33024 32770
2 256 258 32768 33024 32770
2 256 258 32768 3302...

result:

ok Correct answer

Test #4:

score: 0
Accepted
time: 2ms
memory: 3528kb

input:

99 59

output:

59 7552 7611 966656 974208 966715
59 7552 7611 966656 974208 966715
59 7552 7611 966656 974208 966715
59 7552 7611 966656 974208 966715
59 7552 7611 966656 974208 966715
59 7552 7611 966656 974208 966715
59 7552 7611 966656 974208 966715
59 7552 7611 966656 974208 966715
59 7552 7611 966656 974208 9...

result:

ok Correct answer

Test #5:

score: 0
Accepted
time: 2ms
memory: 3380kb

input:

93 17

output:

17 2176 2193 278528 280704 278545
17 2176 2193 278528 280704 278545
17 2176 2193 278528 280704 278545
17 2176 2193 278528 280704 278545
17 2176 2193 278528 280704 278545
17 2176 2193 278528 280704 278545
17 2176 2193 278528 280704 278545
17 2176 2193 278528 280704 278545
17 2176 2193 278528 280704 2...

result:

ok Correct answer

Test #6:

score: 0
Accepted
time: 2ms
memory: 3432kb

input:

100 49

output:

49 6272 6321 802816 809088 802865
49 6272 6321 802816 809088 802865
49 6272 6321 802816 809088 802865
49 6272 6321 802816 809088 802865
49 6272 6321 802816 809088 802865
49 6272 6321 802816 809088 802865
49 6272 6321 802816 809088 802865
49 6272 6321 802816 809088 802865
49 6272 6321 802816 809088 8...

result:

ok Correct answer

Test #7:

score: 0
Accepted
time: 1ms
memory: 3448kb

input:

100 5

output:

5 640 645 81920 82560 81925
5 640 645 81920 82560 81925
5 640 645 81920 82560 81925
5 640 645 81920 82560 81925
5 640 645 81920 82560 81925
5 640 645 81920 82560 81925
5 640 645 81920 82560 81925
5 640 645 81920 82560 81925
5 640 645 81920 82560 81925
5 640 645 81920 82560 81925
5 640 645 81920 8256...

result:

ok Correct answer

Test #8:

score: 0
Accepted
time: 1ms
memory: 3440kb

input:

1 57

output:

57 7296 7353 933888 941184 933945

result:

ok Correct answer

Test #9:

score: 0
Accepted
time: 1ms
memory: 3432kb

input:

1 22

output:

22 2816 2838 360448 363264 360470

result:

ok Correct answer

Test #10:

score: 0
Accepted
time: 1ms
memory: 3604kb

input:

1 60

output:

60 7680 7740 983040 990720 983100

result:

ok Correct answer

Test #11:

score: 0
Accepted
time: 1ms
memory: 3444kb

input:

1 2

output:

2 256 258 32768 33024 32770

result:

ok Correct answer

Test #12:

score: 0
Accepted
time: 1ms
memory: 3384kb

input:

10 24

output:

24 3072 3096 393216 396288 393240
24 3072 3096 393216 396288 393240
24 3072 3096 393216 396288 393240
24 3072 3096 393216 396288 393240
24 3072 3096 393216 396288 393240
24 3072 3096 393216 396288 393240
24 3072 3096 393216 396288 393240
24 3072 3096 393216 396288 393240
24 3072 3096 393216 396288 3...

result:

ok Correct answer