Time Exceeded
/in/foo.cc: In function 'int main()':
/in/foo.cc:20:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
20 | scanf("%d%d", &n, &c);
| ~^ ~~
| | |
| int* long int*
| %ld
/in/foo.cc:20:19: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=]
20 | scanf("%d%d", &n, &c);
| ~^ ~~
| | |
| int* long int*
| %ld
/in/foo.cc:21:45: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
21 | for (int i = 1; i < n; i++) scanf("%d", &ans[i]);
| ~^ ~~~~~~~
| | |
| | long int*
| int*
| %ld
/in/foo.cc:32:43: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
32 | if (i > c && f != ans[i] || f % i != ans[i]) //优化三
| ~~~~~~^~~~~~~~~~~~~~
/in/foo.cc:41:42: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
41 | printf("%d %d %d\n", x, a, b);
| ~^ ~
| | |
| int long int
| %ld
/in/foo.cc:41:45: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
41 | printf("%d %d %d\n", x, a, b);
| ~^ ~
| | |
| int long int
| %ld
/in/foo.cc:41:48: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]
41 | printf("%d %d %d\n", x, a, b);
| ~^ ~
| | |
| int long int
| %ld
信息
- 递交者
- 类型
- 递交
- 题目
- P1965 夜夜的数据加强
- 语言
- C++
- 递交时间
- 2025-02-18 07:40:38
- 评测时间
- 2025-02-18 07:40:38
- 评测机
- 分数
- 95
- 总耗时
- ≥2445ms
- 峰值内存
- ≥1.191 MiB