Submission #104288


Source Code Expand

Copy
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <queue>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>
#include <fstream>
#include <stdio.h>
#include <complex>

using namespace std;

//conversion
//------------------------------------------
inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();}

//typedef
//------------------------------------------
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef pair<int, PII> TIII;
typedef long long LL;
typedef vector<LL> VLL;

//container util

//------------------------------------------
#define ALL(a)  (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define SZ(a) int((a).size())
#define EACH(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())
#define MT(a,b,c) MP(a, MP(b, c))

//repetition
//------------------------------------------
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)


int main(){
	int n;
	cin>>n;
	printf("%.10f\n", (9.0*n/5.0+32.0));

	return 0;
}

Submission Info

Submission Time
Task A - Celsius と Fahrenheit
User UminchuR
Language C++ (G++ 4.6.4)
Score 100
Code Size 1633 Byte
Status
Exec Time 24 ms
Memory 932 KB

Judge Result

Set Name Score / Max Score Test Cases
All 100 / 100 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt, test_13.txt, test_14.txt, test_15.txt, test_16.txt, test_17.txt, test_18.txt, test_19.txt, test_20.txt
Case Name Status Exec Time Memory
00_sample_01.txt 21 ms 680 KB
00_sample_02.txt 21 ms 680 KB
00_sample_03.txt 21 ms 800 KB
test_01.txt 21 ms 736 KB
test_02.txt 22 ms 928 KB
test_03.txt 24 ms 808 KB
test_04.txt 23 ms 804 KB
test_05.txt 20 ms 800 KB
test_06.txt 20 ms 752 KB
test_07.txt 21 ms 800 KB
test_08.txt 21 ms 800 KB
test_09.txt 21 ms 676 KB
test_10.txt 23 ms 676 KB
test_11.txt 23 ms 808 KB
test_12.txt 22 ms 808 KB
test_13.txt 22 ms 676 KB
test_14.txt 20 ms 928 KB
test_15.txt 22 ms 760 KB
test_16.txt 20 ms 804 KB
test_17.txt 23 ms 808 KB
test_18.txt 22 ms 800 KB
test_19.txt 22 ms 920 KB
test_20.txt 20 ms 932 KB