結果
問題 |
No.166 マス埋めゲーム
|
ユーザー |
|
提出日時 | 2015-04-18 22:46:28 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 264 bytes |
コンパイル時間 | 312 ms |
コンパイル使用メモリ | 40,320 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-04 16:27:17 |
合計ジャッジ時間 | 1,019 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 WA * 11 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:9:25: warning: format ‘%f’ expects argument of type ‘float*’, but argument 3 has type ‘long long int*’ [-Wformat=] 9 | fscanf(stdin, "%f %f %f %f", &H, &W, &N, &K); | ~^ ~~ | | | | float* long long int* | %lld main.cpp:9:28: warning: format ‘%f’ expects argument of type ‘float*’, but argument 4 has type ‘long long int*’ [-Wformat=] 9 | fscanf(stdin, "%f %f %f %f", &H, &W, &N, &K); | ~^ ~~ | | | | float* long long int* | %lld main.cpp:9:31: warning: format ‘%f’ expects argument of type ‘float*’, but argument 5 has type ‘long long int*’ [-Wformat=] 9 | fscanf(stdin, "%f %f %f %f", &H, &W, &N, &K); | ~^ ~~ | | | | float* long long int* | %lld main.cpp:9:34: warning: format ‘%f’ expects argument of type ‘float*’, but argument 6 has type ‘long long int*’ [-Wformat=] 9 | fscanf(stdin, "%f %f %f %f", &H, &W, &N, &K); | ~^ ~~ | | | | float* long long int* | %lld main.cpp:9:15: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 9 | fscanf(stdin, "%f %f %f %f", &H, &W, &N, &K); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <cstdio> #include <cmath> #include <vector> using namespace std; int main(){ using std::vector; long long H, W, N, K; fscanf(stdin, "%f %f %f %f", &H, &W, &N, &K); if ((H*W)%N == K%N) { printf("YES\n"); } else { printf("NO\n"); } return 0; }