Created
July 17, 2016 13:45
-
-
Save Jack-Saleem/53b3c930fac97b9936ae22813718199b to your computer and use it in GitHub Desktop.
codeforces 168A WizardsAndDemonstration program in java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class WizardsAndDemonstration | |
{ | |
public static void main(String[] args) | |
{ | |
Scanner z=new Scanner(System.in); | |
int n=z.nextInt(); | |
int x=z.nextInt(); | |
int y=z.nextInt(); | |
int pcent = (int)Math.ceil(((double)y*(double)n)/100); | |
if(x<pcent) | |
System.out.println(pcent-x); | |
else | |
System.out.println(0); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment