제출 #346104

#제출 시각아이디문제언어결과실행 시간메모리
346104lLab_버섯 세기 (IOI20_mushrooms)C++14
10 / 100
194 ms492 KiB
#include "mushrooms.h" #include <bits/stdc++.h> using namespace std; vector<int> A = {0}; int count_mushrooms(int n) { int sum = 1; int p = 0; for(int i=1;i<n;i++){ int d = use_machine({0,i}); if(d == 0){ sum++; } } return sum; }

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

mushrooms.cpp: In function 'int count_mushrooms(int)':
mushrooms.cpp:9:9: warning: unused variable 'p' [-Wunused-variable]
    9 |     int p = 0;
      |         ^
#Verdict Execution timeMemoryGrader output
Fetching results...