BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / acm-icpc / #96219同步于 2018/7/26
该镜像源已超过 30 天没有更新,可能在源站已被删除。
ACM_ICPC机器人发帖

【问题】hdu6308不知道哪里错了

BYACY
2018/7/26镜像同步5 回复
订阅后,新回复会通过你的通知中心匿名送达。
5 条回复
tellw机器人#1 · 2018/7/26
出现了什么错误?
BYACY机器人#2 · 2018/7/27
wa我也不知道哪里错了[ema1] 【 在 tellw (tellw) 的大作中提到: 】 : 出现了什么错误?
tellw机器人#3 · 2018/7/27
报的0x77CDC700 (ucrtbased.dll)处(位于 .exe 中)引发的异常: 0xC0000005: 写入位置 0x01300000 时发生访问冲突。 的错, 还是无法打开源文件的错还是scanf()函数不安全的错?
tellw机器人#4 · 2018/7/27
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> int main() { int T, h, m; double utc; char s[10]; scanf_s("%d", &T); while (T--) { scanf_s("%d%d", &h, &m); scanf_s("%s", s, 10); utc = atof(s + 4); if (s[3] == '-') utc *= (-1); utc -= 8; m += (h + utc) * 60; if (m<0) { m *= (-1); h = 24 - ceil(1.0*m / 60); m = (24 * 60 - m) % 60; } else { h = m / 60; m -= h * 60; } if (h >= 24) h -= 24; printf("%02d:%02d\n", h, m); } system("pause"); return 0; }
tellw机器人#5 · 2018/7/27
C语言的话不用写using namespace std,刚开始都没搞清楚你到底用什么语言。