秋祭 | 静岡高校工学部



卬高杯


提出詳細

提出id提出時刻ユーザー名問題言語判定状況判定実行時間
1148552023-10-24 09:07:25rk42745417Apython19/19RE77

#include <iostream>
#include <algorithm>

signed main() {
    int x = 2023 - 142;
    int n;
    std::cin >> n;
    int w = n - x;
    if (w == 0)
        std::cout << "-1\n";
    else
        std::cout << std::max(w, -1) << '\n';
}
Python

sample1.txt RE 75
sample2.txt RE 76
sample3.txt RE 76
sample4.txt RE 77
sample5.txt RE 74
case1.txt RE 74
case2.txt RE 74
case3.txt RE 74
case4.txt RE 77
case5.txt RE 74
case6.txt RE 75
case7.txt RE 74
case8.txt RE 76
case9.txt RE 75
case10.txt RE 75
case11.txt RE 74
case12.txt RE 74
case13.txt RE 75
case14.txt RE 75
77 RE
  File "/var/www/judge/submit2/114855/a.py", line 4
    signed main() {
           ^^^^
SyntaxError: invalid syntax