Accepted

foo.cc: In function ‘int calc(int)’:
foo.cc:6:13: warning: unused variable ‘res’ [-Wunused-variable]
    6 |         int res = 0;
      |             ^~~
foo.cc: In function ‘int main()’:
foo.cc:25:19: warning: unused variable ‘ans’ [-Wunused-variable]
   25 |         long long ans=0;
      |                   ^~~
foo.cc:26:13: warning: unused variable ‘pre’ [-Wunused-variable]
   26 |         int pre=0;
      |             ^~~
# 状态 耗时 内存占用
#1 Accepted 2ms 512.0 KiB
#2 Accepted 2ms 548.0 KiB
#3 Accepted 3ms 512.0 KiB
#4 Accepted 2ms 512.0 KiB
#5 Accepted 2ms 508.0 KiB
#6 Accepted 2ms 508.0 KiB
#7 Accepted 2ms 512.0 KiB
#8 Accepted 15ms 512.0 KiB
#9 Accepted 26ms 512.0 KiB
#10 Accepted 27ms 512.0 KiB

信息

递交者
类型
递交
题目
P2780 小杨的幸运数字5级2 2024.6
语言
C++
递交时间
2026-08-25 09:27:39
评测时间
2026-08-25 09:27:39
评测机
分数
100
总耗时
89ms
峰值内存
548.0 KiB