Submission #5405479
Source Code Expand
#include <bits/stdc++.h> using namespace std; int main(){ long long x, cnt = 0; cin >> x; if(x > 11){ cnt = x / 11; x %= 11; } if(x == 0) cout << cnt * 2 << endl; else if((x < 7) && (x > 0)) cout << 1 + cnt * 2 << endl; else if((x < 11) && (x > 0))cout << 2 + cnt * 2 << endl; return 0;
Submission Info
Submission Time | |
---|---|
Task | C - X: Yet Another Die Game |
User | you_f51 |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 335 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:17:11: error: expected ‘}’ at end of input return 0; ^