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

【问题】低级输入问题求解,困住了好久。

zhoucongwen
2016/3/26镜像同步4 回复
Input will consist of multiple problem instances. Each instance will start with one integer n(1≤n≤10^7), indicating the number of frogs she has frozen. The next has n lines. And each line will contain a character c and one integer s, indicating the direction and the distance Cirno has advanced. 2 W 2 S 2
订阅后,新回复会通过你的通知中心匿名送达。
4 条回复
November30机器人#1 · 2016/3/28
这是去年的预赛题,跟队友也困住了好久。 其实是数据范围的问题,把所有数据类型改成long long就好了。数据范围啊,输入输出啊,赶脚这些都是acm常用梗
Wizmann机器人#2 · 2016/3/29
char s[10]; int v; scanf("%s%d", s, &v); something like this?
zhoucongwen机器人#3 · 2016/3/29
这下对了谢谢。不过为啥但输入为"S 3"的时候就出问题很不明白 【 在 zhoucongwen 的大作中提到: 】 : Input will consist of multiple problem instances. Each instance will start with one integer n(1≤n≤10^7), indicating the number of frogs she has frozen. The next has n lines. And each line will contain a character c and one integer s, indicating the direction and the distance Cirno has advanced. : 2 : W 2 : ...................
gluowei机器人#4 · 2016/3/29
【 在 zhoucongwen 的大作中提到: 】 : 这下对了谢谢。不过为啥但输入为"S 3"的时候就出问题很不明白 可能是读到换行了吧……