Run ID:100390
提交时间:2024-12-07 17:06:48
#include <iostream> using namespace std; int main(){ int n; while(1){ 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"; } }