ムーアの法則では,18ヶ月でCPU性能が2倍になる.2000年のCPU性能を1とした相対性能が10倍になるのは何年か?
int cpu_faster(int year) { int num_of_year = 18; int year_2000 = 2000; while (year > year_2000) { year_2000 = year_2000 + num_of_year; } return year_2000; } cpu_faster(2000 * 2 * 2 * 2 * 2)
ムーアの法則では,18ヶ月でCPU性能が2倍になる.2000年のCPU性能を1とした相対性能が10倍になるのは何年か?
int cpu_faster(int year) { int num_of_year = 18; int year_2000 = 2000; while (year > year_2000) { year_2000 = year_2000 + num_of_year; } return year_2000; } cpu_faster(2000 * 2 * 2 * 2 * 2)
Generate
More than just a code generator. A tool that helps you with a wide range of tasks. All in one place.
Function from Description
Text Description to SQL Command
Translate Languages
Generate HTML from Description
Code to Explanation
Fix invalid Code
Get Test for Code
Class from Description
Regex from Description
Regex to Explanation
Git Command from Description
Linux Command
Function from Docstring
Add typing to code
Get Language from Code
Time complexity
CSS from Description
Meta Tags from Description