제출 #525992

#제출 시각아이디문제언어결과실행 시간메모리
525992MateGiorbelidzeArranging Shoes (IOI19_shoes)C++14
10 / 100
1 ms292 KiB
#include "shoes.h"
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back

long long count_swaps(std::vector<int> a) {
	ll n = a.size() / 2;
	if (a[0] < 0) return 0;
	else return 1;
}

컴파일 시 표준 에러 (stderr) 메시지

shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:8:5: warning: unused variable 'n' [-Wunused-variable]
    8 |  ll n = a.size() / 2;
      |     ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...