7193
import java.util.Scanner;
public class Hello {
public static void main(String[] args) {
double f;
Scanner reader=new Scanner(System.in);
f=reader.nextDouble();
f=5*(f-50.0)/9.0+10.0;
System.out.println(f);
reader.close();
}
}
7196
import java.util.Scanner;
public class Hello {
public static void main(String[] args) {
int n;
Scanner reader=new Scanner(System.in);
n=reader.nextInt();
double sum;
sum=0.0;
int i;
for(i=1;i<=n;i++){
if(i%2==1){
sum=sum+1.0/(3.0*i-2);
}
else{
sum=sum-1.0/(3.0*i-2);
}
}
System.out.println(sum);
reader.close();
}
}
7197
import java.util.Scanner;
public class Hello {
public static void main(String[] args) {
Scanner reader=new Scanner(System.in);
int small=reader.nextInt();
Scanner reader2=new Scanner(System.in);
int big=reader2.nextInt();
for(int i=small;i<=big;i++){
if((i%4==0&&i%100!=0)||(i%400==0))
System.out.println(i);
}
reader.close();
reader2.close();
}
}
7195
import java.util.Scanner;
public class Hello {
public static void main(String[] args) {
Scanner reader=new Scanner(System.in);
int num=reader.nextInt();
int a[]=new int[5];
for(int i=1;i<=4;i++){
a[i]=num%10;
num=num/10;
a[i]=(a[i]+9)%10;
}
int temp;
temp=a[1];
a[1]=a[3];
a[3]=temp;
temp=a[2];
a[2]=a[4];
a[4]=temp;
for(int i=4;i>=1;i--){
System.out.print(a[i]);
}
reader.close();
}
}
1464
import java.util.Scanner;
public class Hello {
public static void main(String[] args) {
Scanner reader=new Scanner(System.in);
int a[][]=new int [5][5];
int max,maxi,maxj;
for(int i=1;i<=4;i++){
for(int j=1;j<=4;j++){
a[i][j]=reader.nextInt();
}
}
max=a[1][1];
maxi=1;
maxj=1;
for(int i=1;i<=4;i++){
for(int j=1;j<=4;j++){
if(max<a[i][j]){
max=a[i][j];
maxi=i;
maxj=j;
}
}
}
System.out.println(max);
System.out.println(maxi);
System.out.println(maxj);
reader.close();
}
}
7194
import java.util.Scanner;
public class Main{
public static void main(String[] args){
//write your own codes
Scanner reader=new Scanner(System.in);
int repeat;
repeat=reader.nextInt();
for(int i=1;i<=repeat;i++){
int sum;
sum=0;
int a=reader.nextInt();
int a2;
a2=a;
int n=reader.nextInt();
for(int j=1;j<=n;j++){
sum=sum+a2;
a2=a2*10+a;
}
System.out.println(sum);
}
}
}
7186
import java.util.Scanner;
public class first {
public static void main(String args[]) {
Scanner reader=new Scanner(System.in);
int repeat=reader.nextInt();
int temp;
for(int r=1;r<=repeat;r++){
Scanner reader1=new Scanner(System.in);
int n;
n=reader1.nextInt();
int a[]=new int[n+1];//因为下面数组是从a[1]开始放数,所以申请数组时多申请一位,不然会提示数组越界
Scanner inn=new Scanner(System.in);
for(int i=1;i<=n;i++){
a[i]=inn.nextInt();
}
for(int i=1;i<=n;i++) {//不要写成n-1,这样会排不上最后一个数
for(int j=1;j<=n-i;j++) {
if(a[j]>a[j+1]) {
temp=a[j];
a[j]=a[j+1];
a[j+1]=temp;
}
}
}
for(int i=1;i<=n;i++)
System.out.print(a[i]+" ");
}
reader.close();
}
}