You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
595 B
26 lines
595 B
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
clock_t a1, a2;
|
|
|
|
inline int read() {
|
|
int s = 0, w = 1;
|
|
char ch = getchar();
|
|
while (ch < '0' || ch > '9')
|
|
if (ch == '-') w = -w, ch = getchar();
|
|
while (ch >= '0' && ch <= '9') {
|
|
s = 10 * s + ch - '0';
|
|
ch = getchar();
|
|
}
|
|
return s * w;
|
|
}
|
|
|
|
int main() {
|
|
freopen("D:/python/TangDou/QiuckReadWrite/a.txt", "r", stdin);
|
|
int a;
|
|
a1 = clock();
|
|
for (int i = 0; i < 100000; ++i) a = read();
|
|
a2 = clock();
|
|
cout << (double) (a2 - a1) / CLOCKS_PER_SEC;
|
|
return 0;
|
|
} |