제출 #1120109

#제출 시각아이디문제언어결과실행 시간메모리
1120109ezzzayBouquet (EGOI24_bouquet)C++14
8 / 100
65 ms7100 KiB
#include<bits/stdc++.h> using namespace std; #define itn long long #define int long long #define ff first #define ss second #define pb push_back const int N=3e5+5; int l[N],r[N]; int dp[N]; int p[N]; int n; void fun(){ } signed main(){ cin>>n; bool u=0; for(int i=1;i<=n;i++){ cin>>l[i]>>r[i]; if(l[i]>2 or r[i]>2)u=1; } int ans=n/(l[1]+1); if(n%(l[1]+1))ans++; cout<<ans; }

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

Main.cpp: In function 'int main()':
Main.cpp:18:10: warning: variable 'u' set but not used [-Wunused-but-set-variable]
   18 |     bool u=0;
      |          ^
#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...