제출 #386968

#제출 시각아이디문제언어결과실행 시간메모리
386968victoriadCoins (IOI17_coins)C++14
0 / 100
12 ms1456 KiB
#include "coins.h" using namespace std; vector<int> coin_flips(vector<int> b, int c) { vector<int>co; int val=0; for(int i=0;i<64;i++){ if(b[i]==1)val^i; } co.push_back(val^c); return co; } int find_coin(vector<int> b) { int val=0; for(int i=0;i<64;i++){ if(b[i]==1)val^i; } return val; }

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

coins.cpp: In function 'std::vector<int> coin_flips(std::vector<int>, int)':
coins.cpp:7:22: warning: statement has no effect [-Wunused-value]
    7 |        if(b[i]==1)val^i;
      |                   ~~~^~
coins.cpp: In function 'int find_coin(std::vector<int>)':
coins.cpp:17:22: warning: statement has no effect [-Wunused-value]
   17 |        if(b[i]==1)val^i;
      |                   ~~~^~
#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...