/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:12:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<ss.size();i++){
              ~^~~~~~~~~~
/in/foo.cc:13:10: warning: array subscript has type 'char' [-Wchar-subscripts]
   c[ss[i]]++;
          ^
/in/foo.cc:20:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0;i<s.size();i++)cc[s[i]]++;
               ~^~~~~~~~~
/in/foo.cc:20:37: warning: array subscript has type 'char' [-Wchar-subscripts]
   for(int i=0;i<s.size();i++)cc[s[i]]++;
                                     ^
/in/foo.cc:24:25: warning: array subscript has type 'char' [-Wchar-subscripts]
   ans=min(ans,cc[biao[i]]/c[biao[i]]);
                         ^
/in/foo.cc:24:36: warning: array subscript has type 'char' [-Wchar-subscripts]
   ans=min(ans,cc[biao[i]]/c[biao[i]]);
                                    ^
# 状态 耗时 内存占用
#1 Accepted 10ms 752.0 KiB
#2 Accepted 9ms 728.0 KiB
#3 Accepted 9ms 768.0 KiB
#4 Accepted 9ms 744.0 KiB
#5 Accepted 15ms 768.0 KiB
#6 Accepted 15ms 744.0 KiB
#7 Accepted 15ms 748.0 KiB
#8 Accepted 15ms 740.0 KiB
#9 Accepted 16ms 740.0 KiB
#10 Accepted 16ms 728.0 KiB

信息

递交者
类型
递交
题目
P1902 学姐的清晨问候
语言
C++
递交时间
2017-10-10 13:06:00
评测时间
2017-10-10 13:06:00
评测机
分数
100
总耗时
132ms
峰值内存
768.0 KiB