ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1605. Devil's Sequence

What c++ compile is used on Timus? CE
Posted by And IV 7 Mar 2008 01:54
I use G++.
#include <iostream>
#include <math.h>
using namespace std;
int n;
int main() {

 cin>>n;
 cout<<floor(____________);
    return 0;
}
Re: What c++ compile is used on Timus? CE
Posted by Seyyed Mehran Kholdi 5 Jun 2008 22:21
Read the FAQ part. ANY function which is included in math.h MUST get DOUBLE:
cout<<floor((double)_____);