/ RSMOJ /

记录详情

Accepted

foo.cc: In function 'int magic_num(std::string)':
foo.cc:13:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   13 |     for (int i = 0; i < s.size(); i++){
      |                     ~~^~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:32:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   32 |         for (int i = 0; i < s.size(); i++){
      |                         ~~^~~~~~~~~~
foo.cc:33:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   33 |             for (int j = 0; j < s.size(); j++){
      |                             ~~^~~~~~~~~~
foo.cc:37:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   37 |         for (int i = 1; i < s.size(); i++){
      |                         ~~^~~~~~~~~~
foo.cc:45:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   45 |         for (int i = 0; i < s.size(); i++){
      |                         ~~^~~~~~~~~~
foo.cc:46:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   46 |             for (int j = i + 1; j < s.size(); j++){
      |                                 ~~^~~~~~~~~~
foo.cc:47:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   47 |                 for (int l = 0; l < s.size(); l++){
      |                                 ~~^~~~~~~~~~
foo.cc:48:43: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   48 |                     for (int r = l + 1; r < s.size(); r++){
      |                                         ~~^~~~~~~~~~
正在同步测试数据,请稍后
Found 20 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 6ms 412.0 KiB
#2 Accepted 6ms 412.0 KiB
#3 Accepted 6ms 332.0 KiB
#4 Accepted 7ms 412.0 KiB
#5 Accepted 4ms 284.0 KiB
#6 Accepted 3ms 412.0 KiB
#7 Accepted 3ms 412.0 KiB
#8 Accepted 3ms 516.0 KiB
#9 Accepted 79ms 412.0 KiB
#10 Accepted 78ms 412.0 KiB
#11 Accepted 79ms 412.0 KiB
#12 Accepted 79ms 412.0 KiB
#13 Accepted 78ms 412.0 KiB
#14 Accepted 79ms 412.0 KiB
#15 Accepted 79ms 412.0 KiB
#16 Accepted 3ms 332.0 KiB
#17 Accepted 78ms 412.0 KiB
#18 Accepted 81ms 412.0 KiB
#19 Accepted 78ms 412.0 KiB
#20 Accepted 80ms 412.0 KiB

信息

递交者
类型
递交
题目
P1001 小 Z 的魔法
语言
C++
递交时间
2023-10-04 22:09:01
评测时间
2023-10-04 22:09:01
评测机
分数
100
总耗时
919ms
峰值内存
516.0 KiB