Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
87425 | Kevin | 【基础题】买钢笔 | C++ | Accepted | 1 MS | 272 KB | 276 | 2024-08-10 10:46:16 |
#include<bits/stdc++.h> using namespace std; int main(){ int x; cin>>x; if(x%4==0) cout<<0<<" "<<0<<" "<<x/4; else if(x%4==1) cout<<0<<" "<<1<<" "<<x/4-1; else if(x%4==2) cout<<1<<" "<<0<<" "<<x/4-1; else if(x%4==3) cout<<1<<" "<<1<<" "<<x/4-2; return 0; }