Submission #1109619
Source Code Expand
#include <iostream> #include <algorithm> #include <vector> using namespace std; using ll = long long; int main(void){ // Here your code ! //1..N //i , Ai //K throw //pi int n,t,e,x; cin >> n >> t >> e; for(int i = 0; i < n; i++){ cin >> x; //何回ひっくり返すことで計れるか int tmp = ((double)t/x+0.5); if(abs(t-tmp*x) < e){ cout << 1+i << endl; return 0; } } cout << -1 << endl; }
Submission Info
Submission Time | |
---|---|
Task | A - アルデンテ |
User | nasatame |
Language | C++ (G++ 4.6.4) |
Score | 0 |
Code Size | 588 Byte |
Status | CE |
Compile Error
./Main.cpp:6:7: error: expected nested-name-specifier before ‘ll’ ./Main.cpp:6:7: error: ‘ll’ has not been declared ./Main.cpp:6:10: error: expected ‘;’ before ‘=’ token ./Main.cpp:6:10: error: expected unqualified-id before ‘=’ token