제출 #782057

#제출 시각아이디문제언어결과실행 시간메모리
782057Dan4LifeCoins (IOI17_coins)C++17
100 / 100
9 ms1384 KiB
#include <vector> using namespace std; using vi = vector<int>; vi coin_flips(vi b, int c){int x=0;for(int i=0;i<64;i++)c^=b[i]*i;return{c};} int find_coin(vi a) {int x=0;for(int i=0;i<64;i++)x^=a[i]*i;return x;}

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

coins.cpp: In function 'vi coin_flips(vi, int)':
coins.cpp:4:32: warning: unused variable 'x' [-Wunused-variable]
    4 | vi coin_flips(vi b, int c){int x=0;for(int i=0;i<64;i++)c^=b[i]*i;return{c};}
      |                                ^
#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...