游客 Signup | Login
中文 | En

2855 - 两变量交换数据

两变量交换数据

Input

依次输入两个变量的数据

Output

依次输入两个变量交换以后的数据,中间只允许用一个空格隔开

Examples

Input

5 7

Output

7 5

Solution C++

#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
    int a,b,temp;
    cin>>a>>b;
    temp=a;
    a=b;
    b=temp;
    cout<<a<<" "<<b<<endl;
    return 0;
}
Time Limit 1 second
Memory Limit 128 MB
Discuss Stats
上一题 下一题