这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《34第一种方法WA,第二种方法TLE了,求大佬》回复:
第一种方法中,把数组a打印出来,哪里错了就一目了然了喵 ------------ 对于本题图片中的示例: 输入: 4 8 2 4 显示a[][]: 1 1 1 $\textcolor{blue}{0}$ $\textcolor{red}{1}$ $\textcolor{blue}{0}$ $\textcolor{red…
C++ 程序片断: ```cpp char x = -1; cout<< (unsigned)x << endl; // 输出为 4294967295 x = 1; cout<< (unsigned)x << endl; // 输出为 1 ``` 经测试: (unsigned)转换等效于(unsigned int) -…
在讨论《|| 两边顺序导致结果不同!》回复:
感谢指导
```cpp #include using namespace std; int x; int main(){ cin>>x; cout<<(x%4==0&&x%100!=0)||(x%400==0); return 0; } ``` 第6行“||”两边代码交换位置结果不一样! 即: ```cpp cout<<(x%4…