結果
| 問題 |
No.333 門松列を数え上げ
|
| コンテスト | |
| ユーザー |
Ysmr_Ry
|
| 提出日時 | 2016-03-03 11:30:09 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 175 bytes |
| コンパイル時間 | 122 ms |
| コンパイル使用メモリ | 21,760 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-24 13:43:05 |
| 合計ジャッジ時間 | 673 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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", &A, &B );
| ~~~~~^~~~~~~~~~~~~~~~~~
ソースコード
// yukicoder 333 (http://yukicoder.me/problems/935)
#include<cstdio>
int A, B;
int main()
{
scanf( "%d%d", &A, &B );
printf( "%d\n", A>B?2000000000-A:A-1 );
return 0;
}
Ysmr_Ry