結果
| 問題 | No.1223 I hate Golf |
| コンテスト | |
| ユーザー |
kichi2004_
|
| 提出日時 | 2020-07-30 00:17:45 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 370 bytes |
| コンパイル時間 | 757 ms |
| コンパイル使用メモリ | 77,260 KB |
| 最終ジャッジ日時 | 2025-01-12 07:41:42 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 12 |
コンパイルメッセージ
In file included from /usr/include/c++/13/cassert:44,
from main.cpp:3:
main.cpp: In function ‘int main()’:
main.cpp:7:29: warning: ‘n’ is used uninitialized [-Wuninitialized]
7 | assert(-1000000000 <= n && n <= 1000000000);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
main.cpp:6:15: note: ‘n’ declared here
6 | long long n, k, t;
| ^
main.cpp:8:19: warning: ‘k’ may be used uninitialized [-Wmaybe-uninitialized]
8 | assert(1 <= k && k <= 1000000000);
| ~~~~~~~^~~~~~~~~~~~~~~~~~
main.cpp:6:18: note: ‘k’ declared here
6 | long long n, k, t;
| ^
main.cpp:9:19: warning: ‘t’ may be used uninitialized [-Wmaybe-uninitialized]
9 | assert(1 <= t && t <= 1000000000);
| ~~~~~~~^~~~~~~~~~~~~~~~~~
main.cpp:6:21: note: ‘t’ declared here
6 | long long n, k, t;
| ^
ソースコード
#include <iostream>
#include <cmath>
#include <cassert>
int main() {
long long n, k, t;
assert(-1000000000 <= n && n <= 1000000000);
assert(1 <= k && k <= 1000000000);
assert(1 <= t && t <= 1000000000);
assert(n != 2003);
assert(n != 2006);
std::cin >> n >> k >> t;
std::cout << (std::abs(n) <= k * t ? "Yes" : "No") << std::endl;
}
kichi2004_