Submission #3228873
Source Code Expand
#include <iostream> #include <vector> using namespace std; int main() { int K,S; cin>>K>>S; int count=0; for(int X=0;X<=K;++X){ for(int Y=0;Y<=K;++Y){ int Z=S-X-Y; if(0<=Z && Z<=K) ++count } } cout<<count<<endl; }
Submission Info
Submission Time | |
---|---|
Task | B - Sum of Three Integers |
User | masemase |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 282 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:15:5: error: expected ‘;’ before ‘}’ token } ^