日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

1027. Colors in Mars

發布時間:2025/3/13 编程问答 19 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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的全部內容,希望文章能夠幫你解決所遇到的問題。

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