我感觉我又白学语法了

P3857 [TJOI2008] 彩灯

Zechariah @ 2019-03-23 19:12:42

一开始我输出

(1 << ans) % mod

然后wa掉
改成

(1ll << ans) % mod

就AC了
这里我的ans是long long类型的啊...为啥1<<ans会是int?


by 小粉兔 @ 2019-03-23 19:14:57

你白学语法了


by Thomasguo666 @ 2019-03-23 19:17:18

你试一试

long long one=1;
cout<<(one<<40)<<endl;

by codesonic @ 2019-03-23 19:30:43

你白学语法了


by moongazer @ 2019-03-23 19:34:06

你白学语法了


by Simpson561 @ 2019-10-22 11:03:25

你白学语法了


by 春待ち @ 2020-04-09 10:30:30

你白学语法了


by 傅天宇 @ 2020-05-29 23:11:45

你白学语法了


by flyelephant @ 2020-08-15 21:00:56

你白学语法了


by AyaMomizi @ 2020-11-13 15:40:22

你白学语法了


by hulean @ 2020-12-30 16:05:34

你白学语法了


|