QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#352206#4867. So Easy!mr9952WA 8ms10060kbPython388b2024-03-12 23:33:062024-03-12 23:33:06

Judging History

你现在查看的是最新测评结果

  • [2024-03-12 23:33:06]
  • 评测
  • 测评结果:WA
  • 用时:8ms
  • 内存:10060kb
  • [2024-03-12 23:33:06]
  • 提交

answer

import math
a,b,n,m = map(int,input().split())
print(int(((a+math.sqrt(b))**n)%m)+1)

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 8ms
memory: 10060kb

input:

2 3 1 2012
2 3 2 2012
2 2 1 2012
31603 998691525 860250282 20381
4062 16491843 2741468 17921
26061 679145378 8235021 22991
16225 263237214 865378598 7182
18902 357253267 137732528 3407
25414 645847050 674769818 7114
6903 47648125 254957745 1556
16577 274779382 158233677 1099
939 880815 990631973 610...

output:

4

result:

wrong answer 2nd lines differ - expected: '14', found: ''