当前位置: 代码迷 >> 综合 >> Snuke has a favorite restaurant
  详细解决方案

Snuke has a favorite restaurant

热度:53   发布时间:2023-11-27 04:03:17.0

在这里插入图片描述

import java.util.Arrays;
import java.util.Scanner;public class Main {
    public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);while(sc.hasNext()) {
    long n = sc.nextInt();long price = n * 800 - (n / 15)*200;System.out.println(price);}}
}
  相关解决方案