import java.util.Scanner;publicclassS7_01{publicstaticvoidmain(String[] args){
Scanner sc =newScanner(System.in);int n = sc.nextInt();
System.out.println(n >0?(n /2)+" "+(n - n /2):(n - n /2)+" "+(n /2));}}
7-2
import java.util.Scanner;publicclassS7_02{staticint[] rec =newint[11];publicstaticvoidmain(String[] args){
Scanner sc =newScanner(System.in);int n = sc.nextInt();f(n);}staticvoidf(int n){int ans =0;int tem =1;for(int i =1; i <= n; i++){
tem *= i;
rec[i]= tem;
ans += rec[i];}
System.out.println(ans);}}
7-3
import java.util.Scanner;publicclassS7_03{staticint T;publicstaticvoidmain(String[] args){
Scanner sc =newScanner(System.in);
T = sc.nextInt();f();}staticvoidf(){int relax =0;//兔子休息时间int tuDis =0;//兔跑的距离for(int i =1; i <= T; i++){if(relax ==0){
tuDis +=9;}else{
relax--;}if(i %10==0&& relax ==0&& tuDis >3* i){//乌龟在后面 兔子休息30分钟
relax =30;}}if(3* T > tuDis){
System.out.println("@_@ "+3* T);}elseif(3* T < tuDis){
System.out.println("^_^ "+ tuDis);}else{
System.out.println("-_- "+3* T);}}}
7-4
import java.util.Arrays;import java.util.Scanner;publicclassS7_04{staticchar[] str;staticint k =0;publicstaticvoidmain(String[] args){
Scanner sc =newScanner(System.in);
str = sc.nextLine().toCharArray();
Arrays.sort(str);char c = str[0];
System.out.print(c);for(int j =1; j < str.length; j++){if(str[j]== c)continue;
c = str[j];
System.out.print(c);}}}