This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| import sys | |
| limits = [0, 100, 200, 400, 800, 1600, 3200, 6400, 12800, 25600, 51200] | |
| if __name__ == "__main__": | |
| for line in sys.stdin: | |
| iso = float(line) | |
| print max([x for x in limits if x <= iso]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| type Foo struct { | |
| } | |
| type Bar struct { |
NewerOlder