結果
問題 |
No.1902 AC Ratio
|
ユーザー |
|
提出日時 | 2022-04-10 17:12:23 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 140 bytes |
コンパイル時間 | 1,873 ms |
コンパイル使用メモリ | 192,336 KB |
最終ジャッジ日時 | 2025-01-28 17:12:25 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 15 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:6:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%d/%d", &a, &b); | ~~~~~^~~~~~~~~~~~~~~~~
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int a, b; scanf("%d/%d", &a, &b); printf("%.15f¥n", (double)a/b); }