結果
問題 | No.858 わり算 |
ユーザー | bal4u |
提出日時 | 2019-08-09 22:31:09 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 261 bytes |
コンパイル時間 | 113 ms |
コンパイル使用メモリ | 24,960 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-01-07 14:49:57 |
合計ジャッジ時間 | 769 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:10:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 10 | scanf("%lld%lld", &A, &B); | ^~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
// yukicoder 858 わり算 // 2019.8.9 bal4u #include <stdio.h> int main() { long long A, B; int i; scanf("%lld%lld", &A, &B); printf("%d.", (int)(A/B)); i = 50; while (i--) { A %= B, A *= 10; putchar('0'+(int)(A/B)); } putchar('\n'); return 0; }