`while(scanf("%ld%ld%ld",&a,&b,&c)!=-1)`
或`while(scanf("%ld%ld%ld",&a,&b,&c)!=EOF)`或`while(~scanf("%ld%ld%ld",&a,&b,&c))`
by gxy001 @ 2020-01-21 11:19:32
不要停下来啊
by NaCly_Fish @ 2020-01-21 11:20:16
~~嚼了炫迈啊~~
by 深度优先搜索 @ 2020-01-21 11:22:21
神鱼
by ieeqwq @ 2020-01-21 11:24:58
@[深度优先嗖索](/user/299473) 。。。
by MistZero @ 2020-01-21 11:28:28
@[蛇皮](/user/45613) 换成cin就不用写!=0了
```cpp
while(cin>>a>>b>>c)
```
就可以了qaq
by MistZero @ 2020-01-21 11:29:33
还有:
摸鱼!!
by MistZero @ 2020-01-21 11:29:51
输`Ctrl+z`就停了吧
by Sophon @ 2020-01-21 11:34:45
摸鱼!
by Sophon @ 2020-01-21 11:35:00
你把!=0去掉就可以停下来了(狗头)
by GONTECH @ 2020-01-21 17:05:26