제출 #283047

#제출 시각아이디문제언어결과실행 시간메모리
283047IWANTTOGETGOLDINIOIArranging Shoes (IOI19_shoes)C++14
0 / 100
1 ms256 KiB
#include<bits/stdc++.h> using namespace std; #define ll long long #define mk make_pair #define pb push_back #define F first #define S second int count_swaps( vector < int > vc ){ if (vc[0] < 0== vc[1] > 0) { return 0; } else if (vc[0] > 0 && vc[1] < 0) { return 1; } else { return 2; } }

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

shoes.cpp: In function 'int count_swaps(std::vector<int>)':
shoes.cpp:10:12: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
   10 |  if (vc[0] < 0== vc[1] > 0) {
#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...