#include int main(){ int work, day; scanf("%d %d",&work,&day); int motivation = 0; while(day > 1){ motivation = work / (day * day); printf("モチベいえーい%d 残り日数;%d\n",motivation,day); work -= motivation; day -= 1; } printf("%d",work); }