Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
SIN C++
SUBMITTED BY:
Guest
DATE:
Nov. 23, 2013, 4:54 p.m.
FORMAT:
Text only
SIZE:
218 Bytes
Raw
Download
Tweet
HITS:
693
Go to comments
Report
http://cur.lv/4x9e0 (Earn Bitcoins)
#include <iostream>
using namespace std;
int main () {
int n;
cin>>n;
if (n%2==0) cout<<(n/2)*9;
else cout<< ((n-1)/2)*9+5;
return 0;}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus