| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 67167 | 传远琪 | 04四位数移位 | C++ | Compile Error | 0 MS | 0 KB | 262 | 2024-03-14 21:22:06 |
def shift_digits(a): num_str = str(a) num_len = len(num_str) shifted_str = num_str[num_len-1:] + num_str[0:num_len-1] shifted_num = int(shifted_str) return shifted_num a = 1234 shifted_a = shift_digits(a) print(shifted_a)
Main.cc:2:1: error: stray '\302' in program ^ Main.cc:2:1: error: stray '\240' in program Main.cc:12:1: error: stray '\302' in program ^ Main.cc:12:1: error: stray '\240' in program Main.cc:3:1: error: 'def' does not name a type def shift_digits(a): ^