Submission #1677502
Source Code Expand
#define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <string> #include <vector> #include <cmath> #include <fstream> #include <set> #include <utility> #include <algorithm> #define rep(i,p,n) for(int i=p;i<n;i++) #define lli long long int #define vi vector<int> using namespace std; void p(int x) { cout << x << endl; } void pp(string s) { cout << s << endl; } int f(int x) { return ((x*x + 4) / 8); } int main() { int x =20; rep(i, 0, 3) { x = f(x); } p(x); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - 天下一合成関数 |
User | gotutiyan |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 536 Byte |
Status | AC |
Exec Time | 2 ms |
Memory | 380 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | no-input |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
no-input | AC | 2 ms | 380 KB |