![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
编程技巧基础
lz9866
这个作者很懒,什么都没留下…
展开
-
字符串操作
package welcome;public class 字符串操作 { public static void main(String[] args) { // TODO Auto-generated method stub //关于字符串大小的比较 String s1 = "abc"; String s2 = "abad"; System.out.println原创 2017-12-03 20:59:05 · 153 阅读 · 0 评论 -
字符串基础
package welcome;import java.util.Scanner;public class 字符串基础 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner in = new Scanner(System.in); String s = ne原创 2017-12-03 16:36:31 · 151 阅读 · 0 评论 -
字符型基础
package welcome;import java.util.Scanner;public class 字符的运算以及字符的转换 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner in = new Scanner(System.in); //字原创 2017-12-03 16:16:49 · 169 阅读 · 0 评论 -
关于素数的古老话题
人对素数的基本想法:package welcome;import java.util.Scanner;public class 素数1 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner in = new Scanner(System.in); i原创 2017-12-02 20:44:46 · 178 阅读 · 0 评论 -
c++版查指定位置的素数
#include using namespace std;int main(){ int m, n; cin >> m >> n; int prime[10000]; prime[0] = 2; int cnt = 1; for (int i = 3; cnt < n; i++) //注意循环条件不一定仍针对i { int flag = 1; for (int j原创 2017-12-08 16:27:10 · 208 阅读 · 0 评论 -
定义长整型,防止溢出
import java.util.Scanner;public class a加b大于c { public static void main(String[] args) { // TODO Auto-generated method stub Scanner in = new Scanner(System.in); int n = in.nextInt(); for(in原创 2017-12-07 16:32:10 · 1799 阅读 · 0 评论