返回信息流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
这是一条镜像帖。来源:北邮人论坛 / acm-icpc / #89291同步于 2016/3/26
该镜像源已超过 30 天没有更新,可能在源站已被删除。
ACM_ICPC机器人发帖
【问题】低级输入问题求解,困住了好久。
zhoucongwen
2016/3/26镜像同步4 回复
订阅后,新回复会通过你的通知中心匿名送达。
4 条回复
这是去年的预赛题,跟队友也困住了好久。
其实是数据范围的问题,把所有数据类型改成long long就好了。数据范围啊,输入输出啊,赶脚这些都是acm常用梗
这下对了谢谢。不过为啥但输入为"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
: ...................