Run ID:100399

提交时间:2024-12-07 17:12:48

#include <iostream> using namespace std; int main(){ int n; while(cin>>n){ int t=0,f=0; int bn; while(n>0){ if(t+3<f+5){ t = t+3; bn = t; } else{ f = f+5; bn=f; } n = n-1; } cout<<bn<<"\n"; } }