执行用时:0ms
内存消耗:1.38MB
击败了94.13%的用户
击败了100.00%的用户
#include <unistd.h>
static char inBuf[1 << 10];
static int inLen = 0, inPos = 0;
inline int readChar() {
if (inPos == inLen) {
inLen = read(0, inBuf, sizeof(inBuf));
inPos = 0;
if (inLen <= 0) return -1;
}
return inBuf[inPos++];
}
inline int readInt() {
int c = readChar();
while (c <= ' ') { if (c == -1) return 0; c = readChar(); }
int x = 0;
while (c > ' ') { x = x * 10 + (c - '0'); c = readChar(); }
return x;
}
static char outBuf[16];
static int outLen = 0;
inline void outInt(int v) {
if (v == 0) { outBuf[outLen++] = '0'; return; }
char tmp[12]; int tl = 0;
while (v) { tmp[tl++] = '0' + v % 10; v /= 10; }
while (tl) outBuf[outLen++] = tmp[--tl];
}
int main() {
int h1 = readInt(), m1 = readInt(), s1 = readInt();
int h2 = readInt(), m2 = readInt(), s2 = readInt();
}