#include <iostream>
using namespace std;
int main(){
int n;
cin>>n;
cout<<n;
return 0;
}
1011
#include <iostream>
using namespace std;
int main(){
char x;
cin >> x;
cout << x;
return 0;
}
1012 (수정필)
#include <iostream>
using namespace std;
int main(){
float x;
cin >> x;
cout << x;
return 0;
}
1013
#include <iostream>
using namespace std;
int main(){
int a, b;
cin >> a >> b;
cout << a << ' ' << b;
return 0;
}
1014
#include <iostream>
using namespace std;
int main(){
char x, y;
cin >> x >> y;
cout << y << ' ' << x;
return 0;
}
1015 (수정필)
#include <iostream>
using namespace std;
int main(){
float x;
cin >> x;
cout << x;
return 0;
}
1017
#include <iostream>
using namespace std;
int main(){
int x;
cin >> x;
cout << x << ' ' << x << ' ' << x;
return 0;
}
1018(수정필)
#include <iostream>
using namespace std;
int main(){
int hour, minute;
cin >> hour >> minute;
cout << hour << ": " << minute;
return 0;
}
1019(수정필)
#include <iostream>
using namespace std;
int main(){
int year, month, day;
cout << year << "." << month << "." << day;
return 0;
}
1020(수정필)
#include <iostream>
using namespace std;
int main(){
int front, end;
cin >> front >> end;
cout << front << end;
return 0;
}
1021
#include <iostream>
using namespace std;
int main(){
int front, end;
cin >> front >> end;
cout << front << end;
return 0;
}
1022
#include <iostream>
using namespace std;
int main(){
char data[2001];
cin.getline(data, 2001);
cout << data;
return 0;
}
1024(수정필)
#include <iostream>
using namespace std;
int main(){
char x[21];
cin >> x;
for (int i = 0; i < (sizeof(x)/sizeof(int))-1; i++) {
cout << "'"<<x[i]<<"'" << endl;
}
}
1025
#include <iostream>
using namespace std;
int main(){
int x;
do {
cin >> x;
} while (x >= 10, 000 && x <= 99999);
cout << "[" << (x / 10000 * 10000) << "]" << endl;
x -= (x / 10000 * 10000);
cout << "[" << (x / 1000 * 1000) << "]" << endl;
x -= (x / 1000 * 1000);
cout << "[" << (x / 100 * 100) << "]" << endl;
x -= (x / 100 * 100);
cout << "[" << (x / 10 * 10) << "]" << endl;
x -= (x / 10 * 10);
cout << "[" << x << "]" << endl;
return 0;
}
1026(수정필)
#include <iostream>
using namespace std;
int main() {
int h, m, s;
cin >> h >> m >> s;
cout << m;
return 0;
}
1027(수정필)
#include <iostream>
using namespace std;
int main(){
int y, m, d;
cin >> y >> m >> d;
cout << d << "-" << m << "-" << y;
return 0;
}
Comments (0)