(UPD: 2024-12-04 14:48 UTC) Judge is not working due to Cloudflare incident. (URL) We can do nothing about it, sorry. After the incident is resolved, we will grade all submissions.

제출 #251132

#제출 시각아이디문제언어결과실행 시간메모리
251132kshitij_sodaniCoins (IOI17_coins)C++14
100 / 100
19 ms1836 KiB
#include <bits/stdc++.h> using namespace std; typedef int64_t llo; #define mp make_pair #define pb push_back #define a first #define b second #include "coins.h" std::vector<int> coin_flips(std::vector<int> b, int c) { int val=0; for(int i=0;i<64;i++){ if(b[i]){ val=val^i; } } for(int i=0;i<64;i++){ if((val^i)==c){ return {i}; } } // return flips; } int find_coin(std::vector<int> b) { int val=0; for(int i=0;i<64;i++){ if(b[i]){ val=val^i; } } return val; }

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

coins.cpp: In function 'std::vector<int> coin_flips(std::vector<int>, int)':
coins.cpp:24:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
#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...