답안 #1105319

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1105319 2024-10-26T07:08:49 Z monaxia Hotspot (NOI17_hotspot) C++17
0 / 100
8 ms 1904 KB
#include <bits/stdc++.h>
#define pb push_back
#define ppb pop_back
#define fr first
#define sc second
#define all(v) v.begin(), v.end()
#define mod (long long)(1e9 + 7)
#define eps (long long)(1e-9)
using namespace std;
 
using ll = long long;
using ull = unsigned long long;
using ld = long double;
ll LIMIT = 2e3 + 5;



void solve(){
    ld ans = 0;
    for(int i = 1; i <= 80; i ++){
        system("testmaker.exe");
        system("code.exe");
        system("solution.exe");

        cout << "Test #" << i << ": ";
        if(system("fc test.out test.ans"))cout << "Wrong\n";

        else cout << "Correct\n", ans += 0.125;
    }

    cout << "Total Points: " << fixed << setprecision(2) << ans;
}

signed main()
{
    // cin.tie(0)->sync_with_stdio(0);
 
    ll n = 1;

    while(n) {
        solve();
        n --;
        printf("\n");
    }
 
    // cerr << "Time elapsed: " << 1.0 * clock() / CLOCKS_PER_SEC << " s.\n";
}

Compilation message

hotspot.cpp: In function 'void solve()':
hotspot.cpp:21:15: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   21 |         system("testmaker.exe");
      |         ~~~~~~^~~~~~~~~~~~~~~~~
hotspot.cpp:22:15: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   22 |         system("code.exe");
      |         ~~~~~~^~~~~~~~~~~~
hotspot.cpp:23:15: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   23 |         system("solution.exe");
      |         ~~~~~~^~~~~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Incorrect 8 ms 1904 KB Expected integer, but "Test" found
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 8 ms 1904 KB Expected integer, but "Test" found
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 8 ms 1904 KB Expected integer, but "Test" found
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 8 ms 1904 KB Expected integer, but "Test" found
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 8 ms 1904 KB Expected integer, but "Test" found
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 8 ms 1904 KB Expected integer, but "Test" found
2 Halted 0 ms 0 KB -