ZOJ小小蠕虫-P1003-未完成
来源:互联网 发布:怎么下载word软件 编辑:程序博客网 时间:2024/06/05 17:51
import java.util.*;
public class Main
{
public static int[] ArrA = new int[10];
public static int[] ArrB = new int[10];
public static int[] ArrC = {1,2};
public static void solve(int [] a,int [] b)
{
}
public static boolean reason(int a)
{
int tmpInt = a;
for (int i=100 ;i>1 ;i++ )
{
if (tmpInt % i == 0)
{
tmpInt /= i;
}
if (tmpInt < i)
{
tmpInt=1;
System.out.println("商小雨除数则,直接判定验证成功");
return true;//如果商小雨除数则,直接判定验证成功
}
}
if (tmpInt!=1)
{
return false;
}
return true;
}
public static boolean challege(int a, int b)
{
int tempA = a>b ? a:b;
int tempB = a<b ? a:b;
//如果TempB不合理,则失败
if ( reason(b)==false)
{
return false;
}
//如果TempA不合理,则成功
if (reason(a)==false)
{
return true;
}
return true;
}
public static boolean isb(Scanner sc)
{
System.out.println("456");
return sc.hasNextInt();
};
public static void main(String [] args)
{
/*
System.out.println("输入数据");
Scanner sc= new Scanner(System.in);
int num=0;
//输入数据 还存在不足
// 连续输入两个回车表示结束 这一点还没有实现
while (sc.hasNextInt())
{
ArrA[num] = sc.nextInt();
ArrB[num] = sc.nextInt();
num++;
}
solve(ArrA,ArrB);
System.out.println("输出答案");
for (int i=0 ; i<num ;i++ )
{
System.out.println(ArrA[i]);
}
*/
}
}
public class Main
{
public static int[] ArrA = new int[10];
public static int[] ArrB = new int[10];
public static int[] ArrC = {1,2};
public static void solve(int [] a,int [] b)
{
}
public static boolean reason(int a)
{
int tmpInt = a;
for (int i=100 ;i>1 ;i++ )
{
if (tmpInt % i == 0)
{
tmpInt /= i;
}
if (tmpInt < i)
{
tmpInt=1;
System.out.println("商小雨除数则,直接判定验证成功");
return true;//如果商小雨除数则,直接判定验证成功
}
}
if (tmpInt!=1)
{
return false;
}
return true;
}
public static boolean challege(int a, int b)
{
int tempA = a>b ? a:b;
int tempB = a<b ? a:b;
//如果TempB不合理,则失败
if ( reason(b)==false)
{
return false;
}
//如果TempA不合理,则成功
if (reason(a)==false)
{
return true;
}
return true;
}
public static boolean isb(Scanner sc)
{
System.out.println("456");
return sc.hasNextInt();
};
public static void main(String [] args)
{
/*
System.out.println("输入数据");
Scanner sc= new Scanner(System.in);
int num=0;
//输入数据 还存在不足
// 连续输入两个回车表示结束 这一点还没有实现
while (sc.hasNextInt())
{
ArrA[num] = sc.nextInt();
ArrB[num] = sc.nextInt();
num++;
}
solve(ArrA,ArrB);
System.out.println("输出答案");
for (int i=0 ; i<num ;i++ )
{
System.out.println(ArrA[i]);
}
*/
}
}
0 0
- ZOJ小小蠕虫-P1003-未完成
- ZOJ小小蠕虫-P1002
- P1003
- 洛谷 P1003
- 未完成
- 未完成
- 未完成
- 未完成
- 未完成
- 未完成
- 未完成
- 未完成
- 未完成
- 未完成
- 未完成
- 未完成
- 未完成
- 小小
- 机器学习-Kaggle竞赛-Titanic
- Holding Bin-Laden Captive!(母函数)
- MySQL忘记root密码解决方法
- 1036. Boys vs Girls
- 杭电ACM2029java做法
- ZOJ小小蠕虫-P1003-未完成
- Hibernate问题BeanValidation
- #1066 : 无间道之并查集
- S3C6410 MFC H264 编码流程分析
- 悄悄话游戏
- windows平台下clang_checker的使用
- 为什么 mysql 里的 ibdata1 文件不断的增长?
- [leetcode]228.Summary Ranges
- 根据网友们的总结自己尝试了下STM32移植ucosii 终于成功了