結果
問題 | No.232 めぐるはめぐる (2) |
ユーザー | Tawara |
提出日時 | 2015-07-19 11:04:11 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 768 bytes |
コンパイル時間 | 741 ms |
コンパイル使用メモリ | 6,704 KB |
実行使用メモリ | 9,056 KB |
最終ジャッジ日時 | 2023-09-22 19:15:35 |
合計ジャッジ時間 | 4,320 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 37 ms
7,308 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 11 ms
5,948 KB |
testcase_05 | AC | 12 ms
6,012 KB |
testcase_06 | AC | 11 ms
5,944 KB |
testcase_07 | AC | 11 ms
5,868 KB |
testcase_08 | WA | - |
testcase_09 | AC | 11 ms
6,020 KB |
testcase_10 | WA | - |
testcase_11 | AC | 11 ms
5,940 KB |
testcase_12 | WA | - |
testcase_13 | AC | 11 ms
5,824 KB |
testcase_14 | WA | - |
testcase_15 | AC | 11 ms
5,856 KB |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | AC | 11 ms
5,868 KB |
testcase_24 | WA | - |
ソースコード
T, A, B = map(int,raw_input().split(" ")) if min(A,B) + abs(A-B) > T: print "NO" else: T -= 1 if A + B <= 1: if T == 0: if A == B: print "NO" else: print "YES" print "^" if A > B else ">" quit() else: print "YES" if A == B: print "<v" A += 1; B += 1 elif A > B: print "<" B += 1 else: print "v" A += 1 else: if not A: A += 1; B -= 1 print ">v" elif not B: A -= 1; B += 1 print "<^" slant = min(A,B) short = slant +abs(A-B) for i in range(slant-1): print ">^" if short != slant: d = "^" if A > B else ">" for i in range(short-slant): print d exc = T - short for i in range(exc/2): print "^" print "v" if exc % 2 == 0: print ">^" else: print ">" print "^"