-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathA1027.cpp
More file actions
42 lines (35 loc) · 723 Bytes
/
A1027.cpp
File metadata and controls
42 lines (35 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include <iostream>
#include <algorithm>
#include <vector>
#include <cstdio>
using namespace std;
int main() {
int a,b,c,h,l;
cin>>a>>b>>c;
cout<<"#";
h=a/13;
l=a%13;
if (h>9)
cout<<char('A'+h-10);
else cout<<h;
if (l>9)
cout<<char('A'+l-10);
else cout<<l;
h=b/13;
l=b%13;
if (h>9)
cout<<char('A'+h-10);
else cout<<h;
if (l>9)
cout<<char('A'+l-10);
else cout<<l;
h=c/13;
l=c%13;
if (h>9)
cout<<char('A'+h-10);
else cout<<h;
if (l>9)
cout<<char('A'+l-10);
else cout<<l;
return 0;
}