Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:17: warning: array subscript has type 'char' [-Wchar-subscripts]
    8 |         while(s[i]){
      |                 ^
/in/foo.cc:9:19: warning: array subscript has type 'char' [-Wchar-subscripts]
    9 |                 s[i]-=k;
      |                   ^
/in/foo.cc:10:22: warning: array subscript has type 'char' [-Wchar-subscripts]
   10 |                 if(s[i]<'A')s[i]+=26;
      |                      ^
/in/foo.cc:10:31: warning: array subscript has type 'char' [-Wchar-subscripts]
   10 |                 if(s[i]<'A')s[i]+=26;
      |                               ^
/in/foo.cc:11:22: warning: array subscript has type 'char' [-Wchar-subscripts]
   11 |                 if(s[i]>'Z')s[i]-=26;
      |                      ^
/in/foo.cc:11:31: warning: array subscript has type 'char' [-Wchar-subscripts]
   11 |                 if(s[i]>'Z')s[i]-=26;
      |                               ^
# 状态 耗时 内存占用
#1 Accepted 1ms 476.0 KiB
#2 Accepted 1ms 408.0 KiB
#3 Accepted 1ms 540.0 KiB
#4 Accepted 1ms 360.0 KiB
#5 Accepted 1ms 504.0 KiB
#6 Accepted 1ms 504.0 KiB
#7 Accepted 1ms 348.0 KiB
#8 Accepted 1ms 532.0 KiB
#9 Accepted 1ms 348.0 KiB
#10 Accepted 1ms 364.0 KiB

信息

递交者
类型
递交
题目
P3052 凯撒密码 GESP202603 三级T2
语言
C++
递交时间
2026-04-05 12:09:26
评测时间
2026-04-05 12:09:26
评测机
分数
100
总耗时
17ms
峰值内存
540.0 KiB