結果
問題 |
No.499 7進数変換
|
ユーザー |
![]() |
提出日時 | 2025-03-28 15:22:27 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 162 bytes |
コンパイル時間 | 371 ms |
コンパイル使用メモリ | 24,576 KB |
実行使用メモリ | 7,328 KB |
最終ジャッジ日時 | 2025-03-28 15:22:29 |
合計ジャッジ時間 | 2,040 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 18 WA * 13 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:5:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%lld",&n); | ^~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> void main(void) { long long int n = 0; scanf("%lld",&n); long long int count = n/7; n = n%7; printf("%lld",count*10+n); }