Skip to content

Commit 1cfd2b8

Browse files
authored
BOJ #10889: Ancient symbol
1 parent c2db7dc commit 1cfd2b8

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

BOJ/10889/Main.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Author: Minho Kim (ISKU)
3+
* Date: December 9, 2019
4+
* E-mail: minho.kim093@gmail.com
5+
*
6+
* https://github.com/ISKU/Algorithm
7+
* https://www.acmicpc.net/problem/10889
8+
*/
9+
10+
import java.io.*;
11+
12+
public class Main {
13+
public static void main(String[] args) throws Exception {
14+
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
15+
int x = Integer.parseInt(br.readLine());
16+
17+
System.out.println((111 * x * x) + (11 * x) + 1);
18+
}
19+
}

0 commit comments

Comments
 (0)