Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:20: warning: array subscript has type 'char' [-Wchar-subscripts]
  while(cin>>ch)a[ch]++;
                    ^
/in/foo.cc:11:19: warning: array subscript has type 'char' [-Wchar-subscripts]
   while(l<'z'&&a[l]%2==0)l++;//包括0个 
                   ^
/in/foo.cc:12:19: warning: array subscript has type 'char' [-Wchar-subscripts]
   while(r>'a'&&a[r]%2==0)r--;
                   ^
/in/foo.cc:14:6: warning: array subscript has type 'char' [-Wchar-subscripts]
   a[r]--;
      ^
/in/foo.cc:15:6: warning: array subscript has type 'char' [-Wchar-subscripts]
   a[l]++;//把a[r]变为a[l] 为使字典序最小 
      ^
/in/foo.cc:19:9: warning: array subscript has type 'char' [-Wchar-subscripts]
   if(a[i]%2) 
         ^
/in/foo.cc:22:7: warning: array subscript has type 'char' [-Wchar-subscripts]
    a[i]--;
       ^
/in/foo.cc:24:6: warning: array subscript has type 'char' [-Wchar-subscripts]
   a[i]/=2;//先输出左边回文 
      ^
/in/foo.cc:25:21: warning: array subscript has type 'char' [-Wchar-subscripts]
   for(int j=1;j<=a[i];j++) cout<<i;
                     ^
/in/foo.cc:29:21: warning: array subscript has type 'char' [-Wchar-subscripts]
   for(int j=1;j<=a[i];j++)cout<<i;
                     ^
# 状态 耗时 内存占用
#1 Accepted 1ms 356.0 KiB
#2 Accepted 1ms 356.0 KiB
#3 Accepted 1ms 376.0 KiB
#4 Accepted 1ms 376.0 KiB
#5 Accepted 1ms 340.0 KiB
#6 Accepted 1ms 356.0 KiB
#7 Accepted 1ms 344.0 KiB
#8 Accepted 1ms 360.0 KiB
#9 Accepted 1ms 340.0 KiB
#10 Accepted 1ms 376.0 KiB
#11 Accepted 1ms 336.0 KiB
#12 Accepted 1ms 376.0 KiB
#13 Accepted 1ms 340.0 KiB
#14 Accepted 1ms 376.0 KiB
#15 Accepted 1ms 340.0 KiB
#16 Accepted 1ms 380.0 KiB
#17 Accepted 1ms 340.0 KiB
#18 Accepted 1ms 340.0 KiB
#19 Accepted 1ms 336.0 KiB
#20 Accepted 1ms 428.0 KiB
#21 Accepted 1ms 376.0 KiB
#22 Accepted 1ms 384.0 KiB
#23 Accepted 1ms 340.0 KiB
#24 Accepted 1ms 376.0 KiB
#25 Accepted 1ms 332.0 KiB
#26 Accepted 1ms 344.0 KiB
#27 Accepted 1ms 376.0 KiB
#28 Accepted 1ms 376.0 KiB
#29 Accepted 1ms 336.0 KiB
#30 Accepted 1ms 376.0 KiB
#31 Accepted 1ms 360.0 KiB
#32 Accepted 1ms 344.0 KiB
#33 Accepted 1ms 376.0 KiB
#34 Accepted 1ms 340.0 KiB
#35 Accepted 1ms 340.0 KiB
#36 Accepted 1ms 344.0 KiB
#37 Accepted 1ms 376.0 KiB
#38 Accepted 1ms 344.0 KiB
#39 Accepted 1ms 344.0 KiB
#40 Accepted 1ms 376.0 KiB
#41 Accepted 14ms 420.0 KiB
#42 Accepted 14ms 412.0 KiB
#43 Accepted 14ms 424.0 KiB
#44 Accepted 14ms 420.0 KiB
#45 Accepted 14ms 416.0 KiB
#46 Accepted 14ms 416.0 KiB
#47 Accepted 14ms 420.0 KiB
#48 Accepted 15ms 424.0 KiB
#49 Accepted 14ms 420.0 KiB
#50 Accepted 14ms 416.0 KiB

信息

递交者
类型
递交
题目
P2684 制作回文
语言
C++
递交时间
2024-04-28 15:01:50
评测时间
2024-04-28 15:01:50
评测机
分数
100
总耗时
205ms
峰值内存
428.0 KiB