Wrong Answer
/in/foo.cc: In function 'bool isPalindrome(long long int)':
/in/foo.cc:3:67: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
3 | bool isPalindrome(long long n){string s=to_string(n);for(int i=0;i<s.size()/2;i++)if(s[i]!=s[s.size()-1-i])return false;return true;}
| ~^~~~~~~~~~~
信息
- 递交者
- 类型
- 递交
- 题目
- P1799 统计回文数
- 语言
- C++
- 递交时间
- 2026-02-23 16:17:11
- 评测时间
- 2026-02-23 16:17:11
- 评测机
- 分数
- 90
- 总耗时
- 50ms
- 峰值内存
- 540.0 KiB