URL : https://codeup.kr/problemsetsol.php?psid=23
#include <iostream>
using namespace std;
int main()
{
double d;
cin >> d;
cout.precision(12);
cout << d;
return 0;
}
URL : https://codeup.kr/problemsetsol.php?psid=23
#include <iostream>
using namespace std;
int main()
{
unsigned _int32 n;
cin >> n;
cout << n;
return 0;
}
URL : https://codeup.kr/problemsetsol.php?psid=23
#include <iostream>
using namespace std;
int main()
{
int year, month, day;
scanf("%d.%d.%d", &year, &month, &day);
printf("%02d-%02d-%d", day, month, year);
return 0;
}
URL : https://codeup.kr/problemsetsol.php?psid=23
#include <iostream>
using namespace std;
int main()
{
int hour, minute, second;
scanf("%d:%d:%d", &hour, &minute, &second);
printf("%d", minute);
return 0;
}
URL : https://codeup.kr/problemsetsol.php?psid=23
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
int n, result;
cin >> n;
if (n < 10000 && n > 99999)
{
cout << "Input error";
return -1;
}
for (int i = 1; i <= 5; i++)
{
result = n / (100000 / pow(10, i));
n = n % (int)(100000 / pow(10, i));
cout << "[" << (result * (100000 / pow(10, i))) << "]" << endl;
}
return 0;
}
URL : https://codeup.kr/problemsetsol.php?psid=23
#include <iostream>
using namespace std;
int main()
{
char word[21];
cin >> word;
for (int i = 0; i < strlen(word); i++)
cout << "'" << word[i] << "'" << endl;
return 0;
}