/ WHOJ /

记录详情

Accepted

foo.cc: In function 'void init()':
foo.cc:15:46: warning: array subscript has type 'char' [-Wchar-subscripts]
   15 |     for (int i = 0; i < 64; i++) table[base[i]] = i;
      |                                        ~~~~~~^
foo.cc: In function 'void decode(char*)':
foo.cc:25:31: warning: array subscript has type 'char' [-Wchar-subscripts]
   25 |         (*ret++) = table[str[i]] << 2 | table[str[i + 1]] >> 4;
      |                          ~~~~~^
foo.cc:25:56: warning: array subscript has type 'char' [-Wchar-subscripts]
   25 |         (*ret++) = table[str[i]] << 2 | table[str[i + 1]] >> 4;
      |                                               ~~~~~~~~~^
foo.cc:27:40: warning: array subscript has type 'char' [-Wchar-subscripts]
   27 |             (*ret++) = (table[str[i + 1]] & 0x0f) << 4 | table[str[i + 2]] >> 2;
      |                               ~~~~~~~~~^
foo.cc:27:73: warning: array subscript has type 'char' [-Wchar-subscripts]
   27 |             (*ret++) = (table[str[i + 1]] & 0x0f) << 4 | table[str[i + 2]] >> 2;
      |                                                                ~~~~~~~~~^
foo.cc:29:39: warning: array subscript has type 'char' [-Wchar-subscripts]
   29 |             (*ret++) = table[str[i + 2]] << 6 | table[str[i + 3]];
      |                              ~~~~~~~~~^
foo.cc:29:64: warning: array subscript has type 'char' [-Wchar-subscripts]
   29 |             (*ret++) = table[str[i + 2]] << 6 | table[str[i + 3]];
      |                                                       ~~~~~~~~~^
foo.cc: In function 'int main()':
foo.cc:35:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   35 |     scanf("%s", str);
      |     ~~~~~^~~~~~~~~~~
正在同步测试数据,请稍后
Found 5 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 256.0 KiB
#2 Accepted 2ms 256.0 KiB
#3 Accepted 1ms 256.0 KiB
#4 Accepted 2ms 256.0 KiB
#5 Accepted 1ms 256.0 KiB

信息

递交者
类型
递交
题目
P1210 字符串解密
题目数据
下载
语言
C++
递交时间
2022-06-13 21:21:27
评测时间
2022-06-13 21:24:18
评测机
分数
100
总耗时
10ms
峰值内存
256.0 KiB