# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
213559 | berryzed | Ancient symbol (kriii1_A) | Java | 90 ms | 12148 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
* https://oj.uz/problem/view/kriii1_A
* <p>
* 유물 코드를 C 컴파일러로 실행한 후 나온 내용을 다시 위에 붙여서 재컴파일하면 된다.
* https://www.tutorialspoint.com/compile_c_online.php
*/
public class A {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int x = Integer.parseInt(br.readLine());
System.out.println(Math.round(111 * Math.pow(x, 2) + 11 * x + 1));
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |