結果
問題 | No.499 7進数変換 |
ユーザー |
|
提出日時 | 2017-04-07 22:27:13 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 156 bytes |
コンパイル時間 | 507 ms |
コンパイル使用メモリ | 64,896 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-16 00:53:47 |
合計ジャッジ時間 | 1,409 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
コンパイルメッセージ
main.cpp:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 3 | main() | ^~~~
ソースコード
#include<iostream>using namespace std;main(){long n;cin>>n;string s="";while(n){s=char(n%7+48)+s;n/=7;}cout<<(s.size()?s:"0")<<endl;}