結果
問題 |
No.499 7進数変換
|
ユーザー |
|
提出日時 | 2019-07-30 23:58:58 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 227 bytes |
コンパイル時間 | 1,741 ms |
コンパイル使用メモリ | 191,604 KB |
最終ジャッジ日時 | 2025-01-07 10:12:13 |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 31 |
ソースコード
#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; } return 0; }