https://www.acmicpc.net/problem/1075
#include<stdio.h> int main() { int n,f; scanf("%d %d",&n,&f); int a=n%100; int b=n-a; int c=b%f; if(c==0) printf("00"); else printf("%02d",(f-c)%100); }