結果
問題 |
No.333 門松列を数え上げ
|
ユーザー |
![]() |
提出日時 | 2016-04-03 11:27:14 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 187 bytes |
コンパイル時間 | 390 ms |
コンパイル使用メモリ | 54,612 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-02 12:35:00 |
合計ジャッジ時間 | 924 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 2 WA * 5 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:8:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d %d", &inp1, &inp2); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <iostream> using namespace std; int main() { int inp1, inp2; scanf("%d %d", &inp1, &inp2); cout << ((inp1 < inp2) ? (inp1 - 1) : (2000000000 - inp1)) << endl; return 0; }