Welcome   HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online
Home
FAQs
Problem Set
Practices
Online Contests
Major Exercises
OI Special
Judgement
Submit
Online Status
User Ranklist
Users
Register new
Login
Web Links
Hunan Normal University
College of Information Science and Engineering
交换两个数的值
Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB
Total submit users: 381, Accepted users: 362
Problem 10479 : No special judgement
Problem description
  定义交换函数swap,用于交换两个数的值。在主程序中调用 swap函数。(要求用指针变量传递参数值)。

Input
  第一行是一个整数T,表示有T组数据。每组数据一行,为两个整数a,b。数据间用空格分隔。

Output
  对于每一组数据,输出交换后的数据,数据间用一个空格分隔,换行。

Sample Input
2
4 6
-5 85
Sample Output
6 4
85 -5
Submit   Clarifications   Judge Status  Problems  Ranklist 

HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online, Version 2010.5.5.final.
Web visits:2122 today,12073171 total, since 2010-05-07