[swexpert] 1284. 수도 요금 경쟁 (java, D2)
Posted by 해랑쓰 블로그 (Haerang's blog)
package com.ssafy.edu; import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int t=sc.nextInt(); for (int tc = 1; tc r){ caseTwo+=(w-r)*s; } System.out.printf("#%d %d\n",tc,caseOne