結果
問題 |
No.998 Four Integers
|
ユーザー |
![]() |
提出日時 | 2020-02-28 21:22:36 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 208 bytes |
コンパイル時間 | 617 ms |
コンパイル使用メモリ | 55,808 KB |
最終ジャッジ日時 | 2025-01-09 02:30:54 |
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 WA * 1 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:7:26: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | for (auto& ai: a) scanf("%d", &ai); | ~~~~~^~~~~~~~~~~
ソースコード
#include <cstdio> #include <algorithm> #include <vector> int main() { std::vector<int> a(4); for (auto& ai: a) scanf("%d", &ai); std::sort(a.begin(), a.end()); puts((a[3]-a[0] == 3)? "Yes": "No"); }