結果
問題 |
No.221 犯罪都市
|
ユーザー |
![]() |
提出日時 | 2025-04-01 17:42:20 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 150 bytes |
コンパイル時間 | 456 ms |
コンパイル使用メモリ | 27,776 KB |
実行使用メモリ | 7,720 KB |
最終ジャッジ日時 | 2025-04-01 17:42:22 |
合計ジャッジ時間 | 1,444 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:6:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%d", &criminal); | ~~~~~^~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main() { int criminal = 0; scanf("%d", &criminal); printf("%lf\n", (10000 - criminal) * 100.0 / (10000 + 98 * criminal)); }