importjava.util.Scanner;publicclassMain{privatestaticScanner cin;publicstaticintDISTENCE=250;publicstaticintDAYS_A_WEEK=5;publicstaticvoidmain(String args[])throwsException { cin =newScanner(System.in);intx=cin.nextInt();longn=cin.nextLong();longxn=0;longret=0;longtmp=0;if(x>=1&& x<=7&&...
import java.util.Scanner; public class Main{ private static Scanner cin; public static int DISTENCE = 250; public static int DAYS_A_WEEK = 5; public static void main(String args[])throws Exception { cin = new Scanner(System.in); int x = cin.nextInt(); long n = cin.nextLong(); lo...
内容提示: Java 实现 洛谷 P1424 小鱼的航程( 改进版) import java.util.Scanner; public class Main{ private static Scanner cin; public static int DISTENCE = 250; public static int DAYS_A_WEEK = 5; public static void main(String args[])throws Exception { cin = new Scanner(System.in); int...
题目链接https://www.luogu.org/problemnew/show/P1424
洛谷P1424 小鱼的航程(改进版) C语言版 题目描述 有一只小鱼,它平日每天游泳 250 公里,周末休息(实行双休日),假设从周 x 开始算起,过了 n 天以后,小鱼一共累计游泳了多少公里呢? 输入格式 输入两个正整数 x,n,表示从周 x 算起,经过 n 天。
import java.util.Scanner; public class Main{ private static Scanner cin; public static int DISTENCE = 250; public static int DAYS_A_WEEK = 5; public static void main(String args[])throws Exception { cin = new Scanner(System.in);
Java实现 洛谷 P1424 小鱼的航程(改进版) importjava.util.Scanner;publicclassMain{privatestaticScanner cin;publicstaticintDISTENCE=250;publicstaticintDAYS_A_WEEK=5;publicstaticvoidmain(String args[])throwsException { cin =newScanner(System.in);intx=cin.nextInt();longn=cin.nextLong();longxn=0;...