| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 5317 | 陈颖钧 | 汽水瓶 | C++ | Wrong Answer | 0 | 1 MS | 268 KB | 370 | 2025-02-03 17:38:12 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,n=1,c,d; while(n>0){ d=0; cin>>n; c=n+1; if(n<3){ cout<<'0'<<endl; }else{ while(c>=3){ a=c%3; b=c/3; d=d+b; c=b+a; } cout<<d<<endl; } } }