結果
問題 | No.3032 Unavailability of Inequality Signs |
ユーザー | moko |
提出日時 | 2018-04-03 08:46:01 |
言語 | Python3 (3.11.6 + numpy 1.26.0 + scipy 1.11.3) |
結果 |
WA
|
実行時間 | - |
コード長 | 354 bytes |
コンパイル時間 | 227 ms |
コンパイル使用メモリ | 10,928 KB |
実行使用メモリ | 7,976 KB |
最終ジャッジ日時 | 2023-09-08 14:00:45 |
合計ジャッジ時間 | 2,164 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
ソースコード
n=int(input()) for i in range(n): a,b=map(int,input().split()) if a==b: print("=") continue A,B=a,b while A!=0 and B!=0: A/=10 B/=10 if A==0 and B!=0: print("<") continue elif A!=0 and B==0: print(">") continue A,B=a%10,b%10 flg=False for i in range(11): if A+i==B: print("<") flg=True break if not flg: print(">")