日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

1027. Colors in Mars

發布時間:2025/3/13 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 1027. Colors in Mars 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
C++語言: Codee#25889 01 /*
02 +++++++++++++++++++++++++++++++++++++++
03 ??????????????? author: chm
04 +++++++++++++++++++++++++++++++++++++++
05 */
06
07 #include <map>
08 #include <set>
09 #include <list>
10 #include <queue>
11 #include <cmath>
12 #include <stack>
13 #include <bitset>
14 #include <cstdio>
15 #include <cctype>
16 #include <string>
17 #include <vector>
18 #include <cassert>
19 #include <cstdlib>
20 #include <cstring>
21 #include <fstream>
22 #include <sstream>
23 #include <iomanip>
24 #include <iostream>
25 #include <algorithm>
26
27 using namespace std;
28
29 FILE*??????????? fin???????? = stdin;
30 FILE*??????????? fout???????? = stdout;
31 const int??????? max_size???? = 10086;
32 void printnum(int x)
33 {
34 ??? if(x <= 9)
35 ??????? printf("%d", x);
36 ??? else
37 ??????? printf("%c", x - 10 + 'A');
38 }
39 void run(int num)
40 {
41 ??? int d1 = num / 13;
42 ??? int d2 = num % 13;
43 ??? printnum(d1);
44 ??? printnum(d2);
45 }
46 #define ONLINE_JUDGE
47 int main()
48 {
49 #ifndef ONLINE_JUDGE
50 ??? freopen("d:\\in.txt", "r", stdin);
51 ??? freopen("d:\\out.txt", "w", stdout);
52 #endif
53 ??? int red, green, blue;
54 ??? scanf("%d%d%d", &red, &green, &blue);
55 ??? printf("#");
56 ??? run(red);
57 ??? run(green);
58 ??? run(blue);
59 ??? printf("\n");
60
61
62
63 #ifndef ONLINE_JUDGE
64 ??? fclose(stdout);
65 ??? system("start d:\\check.exe d:\\out.txt d:\\ans.txt");
66 #endif
67 ??? return 0;
68 }

轉載于:https://www.cnblogs.com/invisible/archive/2012/03/20/2408769.html

總結

以上是生活随笔為你收集整理的1027. Colors in Mars的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。