코이스터디 모의고사A

Run Settings
LanguageC
Language Version
Run Command
#include <stdio.h> int main(){ int T; scanf("%d",&T); int a,b,c; //a=300,b=60,c=10 if(T%10!=0){ printf("-1"); } else{ a=(T-T%300)/300; b=((T-300*a)-(T-300*a)%60)/60; c=(T-300*a-60*b)/10; printf("%d %d %d",a,b,c); } }
Editor Settings
Theme
Key bindings
Full width
Lines