結果
問題 | No.2819 Binary Binary-Operator |
ユーザー |
![]() |
提出日時 | 2024-07-29 14:50:50 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 33 ms / 2,000 ms |
コード長 | 434 bytes |
コンパイル時間 | 307 ms |
コンパイル使用メモリ | 40,448 KB |
最終ジャッジ日時 | 2025-02-23 19:25:05 |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 64 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:15:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 15 | scanf("%d%d", &x, &y); | ~~~~~^~~~~~~~~~~~~~~~ main.cpp:24:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 24 | scanf("%d", &t); | ~~~~~^~~~~~~~~~
ソースコード
/* -*- coding: utf-8 -*- * * 2819.cc: No.2819 Binary Binary-Operator - yukicoder */ #include<cstdio> #include<algorithm> using namespace std; /* main */ int main() { int x, y; scanf("%d%d", &x, &y); int vs[4] = {x, y, y, y}; puts("4"); for (int i = 0; i < 4; i++) printf("%d%c", vs[i], (i < 3) ? ' ' : '\n'); fflush(stdout); int t; scanf("%d", &t); printf("%d\n", t); fflush(stdout); return 0; }