東京大学プログラミングコンテスト2014

Submission #487255

Source codeソースコード

import math

x, y = map(float, raw_input().split())

x11 = math.floor(x)-1
y11 = math.floor(y)
x12 = 1000*(x-x11) + x11
y12 = 1000*(y-y11) + y11

x21 = math.floor(x)-2
y21 = math.floor(y)
x22 = 1000*(x-x21) + x21
y22 = 1000*(y-y21) + y21

print str(int(x11)) + ' ' + str(int(y11)) + ' ' + str(int(x12)) + ' ' + str(int(y12))
print str(int(x21)) + ' ' + str(int(y21)) + ' ' + str(int(x22)) + ' ' + str(int(y22))

Submission

Task問題 B - 交点
User nameユーザ名 tsb2b
Created time投稿日時
Language言語 Python (2.7.3)
Status状態 WA
Score得点 0
Source lengthソースコード長 427 Byte
File nameファイル名
Exec time実行時間 ms
Memory usageメモリ使用量 -

Test case

Set

Set name Score得点 / Max score Cases
All 0 / 100 scrambled_00.txt,scrambled_01.txt,scrambled_02.txt,scrambled_03.txt,scrambled_04.txt,scrambled_05.txt,scrambled_06.txt,scrambled_07.txt,scrambled_08.txt,scrambled_09.txt,scrambled_10.txt,scrambled_11.txt,scrambled_12.txt,scrambled_13.txt,scrambled_14.txt,scrambled_15.txt,scrambled_16.txt,scrambled_17.txt,scrambled_18.txt,scrambled_19.txt,scrambled_20.txt,scrambled_21.txt,scrambled_22.txt,scrambled_23.txt,scrambled_24.txt,scrambled_25.txt,scrambled_26.txt

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
scrambled_00.txt WA
scrambled_01.txt WA
scrambled_02.txt WA
scrambled_03.txt WA
scrambled_04.txt WA
scrambled_05.txt WA
scrambled_06.txt WA
scrambled_07.txt WA
scrambled_08.txt WA
scrambled_09.txt WA
scrambled_10.txt WA
scrambled_11.txt WA
scrambled_12.txt WA
scrambled_13.txt WA
scrambled_14.txt WA
scrambled_15.txt WA
scrambled_16.txt WA
scrambled_17.txt WA
scrambled_18.txt WA
scrambled_19.txt WA
scrambled_20.txt WA
scrambled_21.txt AC 56 ms 3264 KB
scrambled_22.txt AC 55 ms 3292 KB
scrambled_23.txt WA
scrambled_24.txt WA
scrambled_25.txt WA
scrambled_26.txt WA