結果

問題 No.499 7進数変換
ユーザー 0w10w1
提出日時 2017-04-09 19:31:10
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 154 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 87,348 KB
実行使用メモリ 71,628 KB
最終ジャッジ日時 2023-09-25 01:28:50
合計ジャッジ時間 3,912 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 70 ms
71,360 KB
testcase_02 AC 68 ms
71,628 KB
testcase_03 AC 69 ms
71,384 KB
testcase_04 AC 74 ms
71,300 KB
testcase_05 AC 69 ms
71,496 KB
testcase_06 AC 70 ms
71,444 KB
testcase_07 AC 69 ms
71,568 KB
testcase_08 AC 70 ms
71,376 KB
testcase_09 AC 70 ms
71,492 KB
testcase_10 AC 70 ms
71,376 KB
testcase_11 AC 70 ms
71,404 KB
testcase_12 AC 74 ms
71,388 KB
testcase_13 AC 72 ms
71,516 KB
testcase_14 AC 71 ms
71,340 KB
testcase_15 AC 70 ms
71,456 KB
testcase_16 AC 71 ms
71,164 KB
testcase_17 AC 70 ms
71,348 KB
testcase_18 AC 69 ms
71,380 KB
testcase_19 AC 68 ms
71,288 KB
testcase_20 AC 69 ms
71,340 KB
testcase_21 AC 68 ms
71,356 KB
testcase_22 AC 70 ms
71,496 KB
testcase_23 AC 69 ms
71,460 KB
testcase_24 AC 68 ms
71,112 KB
testcase_25 AC 68 ms
71,348 KB
testcase_26 AC 68 ms
71,168 KB
testcase_27 AC 70 ms
71,328 KB
testcase_28 AC 69 ms
71,420 KB
testcase_29 AC 68 ms
71,308 KB
testcase_30 AC 68 ms
71,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int( input() )
ans = ""
while N:
  ans += chr( ord( '0' ) + N % 7 )
  N //= 7
for i in range( len( ans ) - 1, -1, -1 ):
  print( ans[ i ], end = "" )
0