#14668: 來自台灣的小福利


Aaaaaaaaaaaaa (羅傑)

學校 : 臺北市立大同高級中學
編號 : 69102
來源 : [111.235.208.242]
最後登入時間 :
2023-09-13 09:02:41
b375. 幻方(魔方陣)之三:6 階 | From: [203.72.178.252] | 發表日期 : 2018-07-30 14:42

#include<iostream>
using namespace std;
int main(){
cout<<"A"<<endl;
cout<<" 20 20 0 0 28 28"<<endl;
cout<<" 20 20 0 0 28 28"<<endl;
cout<<" 24 24 16 16 8 8"<<endl;
cout<<" 24 24 16 16 8 8"<<endl;
cout<<" 4 4 32 32 12 12"<<endl;
cout<<" 4 4 32 32 12 12"<<endl;
cout<<"B"<<endl;
cout<<" 4 2 4 2 1 2"<<endl;
cout<<" 1 3 1 3 4 3"<<endl;
cout<<" 4 2 1 2 4 2"<<endl;
cout<<" 1 3 4 3 1 3"<<endl;
cout<<" 4 2 4 2 1 2"<<endl;
cout<<" 1 3 1 3 4 3"<<endl;
cout<<"magic6"<<endl;
cout<<" 24 22 4 2 29 30"<<endl;
cout<<" 21 23 1 3 32 31"<<endl;
cout<<" 28 26 17 18 12 10"<<endl;
cout<<" 25 27 20 19 9 11"<<endl;
cout<<" 8 6 36 34 13 14"<<endl;
cout<<" 5 7 33 35 16 15"<<endl;
}

聰明人的做法

 
#14669: Re:來自台灣的小福利


Aaaaaaaaaaaaa (羅傑)

學校 : 臺北市立大同高級中學
編號 : 69102
來源 : [111.235.208.242]
最後登入時間 :
2023-09-13 09:02:41
b375. 幻方(魔方陣)之三:6 階 | From: [203.72.178.252] | 發表日期 : 2018-07-30 14:47

#include
using namespace std;
int main(){
cout<<"A"<<endl;
cout<<" 20 20 0 0 28 28"<<endl;
cout<<" 20 20 0 0 28 28"<<endl;
cout<<" 24 24 16 16 8 8"<<endl;
cout<<" 24 24 16 16 8 8"<<endl;
cout<<" 4 4 32 32 12 12"<<endl;
cout<<" 4 4 32 32 12 12"<<endl;
cout<<"B"<<endl;
cout<<" 4 2 4 2 1 2"<<endl;
cout<<" 1 3 1 3 4 3"<<endl;
cout<<" 4 2 1 2 4 2"<<endl;
cout<<" 1 3 4 3 1 3"<<endl;
cout<<" 4 2 4 2 1 2"<<endl;
cout<<" 1 3 1 3 4 3"<<endl;
cout<<"magic6"<<endl;
cout<<" 24 22 4 2 29 30"<<endl;
cout<<" 21 23 1 3 32 31"<<endl;
cout<<" 28 26 17 18 12 10"<<endl;
cout<<" 25 27 20 19 9 11"<<endl;
cout<<" 8 6 36 34 13 14"<<endl;
cout<<" 5 7 33 35 16 15"<<endl;
}

聰明人的做法

沒過的人: 這裡有愛心小提醒


空格要自己改ㄚ

 

 
ZeroJudge Forum