Skip to content

Instantly share code, notes, and snippets.

@Jack-Saleem
Created July 17, 2016 13:45
Show Gist options
  • Save Jack-Saleem/53b3c930fac97b9936ae22813718199b to your computer and use it in GitHub Desktop.
Save Jack-Saleem/53b3c930fac97b9936ae22813718199b to your computer and use it in GitHub Desktop.
codeforces 168A WizardsAndDemonstration program in java
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