?
# | Author | Problem | Lang | Verdict | Time | Memory | Sent | Judged | |
---|---|---|---|---|---|---|---|---|---|
1424447 |
Contestant: GoomboCode |
168A - 34 | Java 7 | Wrong answer on pretest 4 | 90 ms | 43836 KB | 2012-03-27 19:12:13 | 2012-03-27 19:12:15 |
import java.io.*; import java.util.*; public class A implements Runnable { BufferedReader br; StringTokenizer st; PrintWriter out; String nextToken() throws IOException { while (!st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return st.nextToken(); } int nextInt() throws IOException { return Integer.parseInt(nextToken()); } String nextStr() throws IOException { return nextToken(); } char nextChar() throws IOException { return nextToken().charAt(0); } long nextLong() throws IOException { return Long.parseLong(nextToken()); } double nextDouble() throws IOException { return Double.parseDouble(nextToken()); } public void solve() throws IOException { int n = nextInt(); int x = nextInt(); int y = nextInt(); int stoK = n*y - 100*x; int res = stoK/100; if ( stoK - res*100 != 0 ) ++res; out.println( res ); } public void run() { try { br = new BufferedReader(new InputStreamReader(System.in)); out = new PrintWriter(new OutputStreamWriter(System.out)); st = new StringTokenizer(""); solve(); } catch (Exception e) { e.printStackTrace(); System.exit(1); } finally { out.close(); } } public static void main(String[] args) { new Thread(new A()).start(); } }
?
?
?
?