Skip to content

Commit 58bcbe9

Browse files
Create memory.py
Signed-off-by: Ruslan Senatorov <55090151+ruslansenatorov@users.noreply.github.com>
1 parent 9b58ecb commit 58bcbe9

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

task/10_10/memory.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
def main() -> None:
2+
n = int(input().strip())
3+
total_bytes = 8 * n * n
4+
mb = total_bytes / 10**6
5+
tb = total_bytes / 10**12
6+
print(f"{mb:.3f} {tb:.3f}")
7+
8+
9+
if __name__ == '__main__':
10+
main()

0 commit comments

Comments
 (0)