제출 #900710

#제출 시각아이디문제언어결과실행 시간메모리
900710ozner77Arranging Shoes (IOI19_shoes)C++17
15 / 100
19 ms3268 KiB
#include "shoes.h" #include <bits/stdc++.h> #include <vector>1 #include <iostream> #include <string> #include <algorithm> using namespace std; long long count_swaps(vector<int> s) { long long swaps=0; long long e=s.size(); e=e/2; e--; swaps=(e*(e+1))/2; if(e==0){ swaps=0; } return swaps; }

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

shoes.cpp:3:18: warning: extra tokens at end of #include directive
    3 | #include <vector>1
      |                  ^
#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...