//No.70 睡眠の重要性!@眠い import std.stdio; void main() { uint n, total; readf("%d\n", &n); for(uint i=0; i12?H:24+H)*60 + M); } writeln(total); }