結果
問題 | No.499 7進数変換 |
ユーザー |
![]() |
提出日時 | 2017-04-07 22:33:49 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 197 bytes |
コンパイル時間 | 394 ms |
コンパイル使用メモリ | 53,844 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-16 01:03:13 |
合計ジャッジ時間 | 1,194 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
ソースコード
#include <iostream>#include <string>using namespace std;int main() {unsigned long long n,a=0,base=1;cin>>n;while(n>0){a+=(n%7)*base;base*=10;n/=7;}cout<<a<<endl;return 0;}