/ SeriousOJ /

Record Detail

Compile Error

foo.c:1:1: error: unknown type name 'def'
    1 | def align_blades(a1,a2,a3):
      | ^~~
foo.c: In function 'align_blades':
foo.c:1:27: error: expected declaration specifiers before ':' token
    1 | def align_blades(a1,a2,a3):
      |                           ^

Code

def align_blades(a1,a2,a3):
    target=120
    adjustment1=target-a1
    adjustment2=target-a2
    adjustment3=target-a3
    return f"{adjustment1} {adjustment2} {adjustment3}"
a1,a2,a3=map(int,input("enter 3 numbers: ").split())
result=align_blades(a1,a2,a3)
print(result)

Information

Submit By
Type
Submission
Problem
P1130 Angle Equalizer
Contest
Happy New Year 2025
Language
C99 (GCC 13.2.0)
Submit At
2025-01-02 15:34:06
Judged At
2025-01-02 15:34:06
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes