結果
問題 |
No.1223 I hate Golf
|
ユーザー |
![]() |
提出日時 | 2020-09-15 21:23:13 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,131 bytes |
コンパイル時間 | 956 ms |
コンパイル使用メモリ | 96,544 KB |
最終ジャッジ日時 | 2025-01-14 15:05:32 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 8 WA * 4 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:39:13: warning: ‘n’ is used uninitialized [-Wuninitialized] 39 | yorn(abs(n)<=k*t) ; | ~~~^~~ main.cpp:38:8: note: ‘n’ was declared here 38 | ll n,k,t ; | ^ main.cpp:39:19: warning: ‘k’ is used uninitialized [-Wuninitialized] 39 | yorn(abs(n)<=k*t) ; | ~^~ main.cpp:38:10: note: ‘k’ was declared here 38 | ll n,k,t ; | ^ main.cpp:39:19: warning: ‘t’ is used uninitialized [-Wuninitialized] 39 | yorn(abs(n)<=k*t) ; | ~^~ main.cpp:38:12: note: ‘t’ was declared here 38 | ll n,k,t ; | ^
ソースコード
#include <iostream> //#include <iomanip> #include <string> #include <vector> #include <algorithm> #include <utility> #include <set> #include <map> #include <queue> //#include <deque> //#include <bitset> #include <math.h> using namespace std ; using ll = long long ; //using ld = long double ; using vll = vector<ll> ; using vvll = vector<vll> ; using vc = vector<char> ; using vvc = vector<vc> ; //using vb = vector<bool> ; //using vvb = vector<vb> ; using pll = pair<ll,ll> ; #define all(v) v.begin(),v.end() ll mod = 1000000007 ; //long double pie = acos(-1) ; ll INF = 1000000000000 ; void yorn(bool a){if(a) cout << "Yes" << endl ; else cout << "No" << endl ;} //void YorN(bool a){if(a) cout << "YES" << endl ; else cout << "NO" << endl ;} ll gcd(long long a,long long b){if(b==0) return a ; return gcd(b,a%b) ;} ll lcm(long long a,long long b){return a/gcd(a,b)*b ;} //ll sa(long long a,long long b){if(a>b) return a-b ; return b-a ;} //void fix_cout(){cout << fixed << setprecision(20) ;} void chmax(ll &a,ll b){ if(a<b) a = b ;} void chmin(ll &a,ll b){ if(a>b) a = b ;} int main(){ ll n,k,t ; yorn(abs(n)<=k*t) ; }