結果
問題 |
No.499 7進数変換
|
ユーザー |
|
提出日時 | 2019-07-31 00:00:23 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 252 bytes |
コンパイル時間 | 2,126 ms |
コンパイル使用メモリ | 193,140 KB |
最終ジャッジ日時 | 2025-01-07 10:12:29 |
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 28 WA * 3 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int n; cin>>n; int ans = 0; int d=1; while (n) { ans += n%7*d; d *= 10; n /= 7; } cout << ans << endl; return 0; }