๋ฐ์ํ
๋์ ํ์ด
import java.io.*;
public class Sugar_Delivery_2839 {
public static void main(String[] args) throws IOException {
int answer = 1;
int count = 1;
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
int N = Integer.parseInt(bf.readLine());
while (count < N) {
count += 6 * (answer++);
}
bw.write(answer + "");
bw.flush();
bw.close();
}
}
๋ฐ์ํ