随笔分类 -  pat乙

摘要:import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String s = in.nextLine(); char[] 阅读全文
posted @ 2020-03-14 16:59 FDSUN 阅读(107) 评论(0) 推荐(0)
摘要:import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int len = Integer.parseInt(in.ne 阅读全文
posted @ 2020-03-14 16:57 FDSUN 阅读(166) 评论(0) 推荐(0)
摘要:import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int len = Integer.parseInt 阅读全文
posted @ 2020-02-13 12:49 FDSUN 阅读(190) 评论(0) 推荐(0)
摘要:import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String[] strings = {"ling" 阅读全文
posted @ 2020-02-05 18:12 FDSUN 阅读(233) 评论(0) 推荐(0)
摘要:#include <stdio.h> int main(){ int n; int cnt=0; scanf("%d",&n); while(n!=1){ if(n%2==0){ n=n/2; }else{ n=(3*n+1)/2; } cnt++; } printf("%d",cnt); retu 阅读全文
posted @ 2020-02-05 18:10 FDSUN 阅读(179) 评论(0) 推荐(0)