結果
問題 | No.333 門松列を数え上げ |
ユーザー |
![]() |
提出日時 | 2020-06-09 14:07:27 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 219 bytes |
コンパイル時間 | 121 ms |
コンパイル使用メモリ | 24,192 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-01-01 23:48:02 |
合計ジャッジ時間 | 883 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 4 WA * 3 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:5:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%lld %lld", &L, &N); | ^~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main() { long long int A, L, N; scanf("%lld %lld", &L, &N); if (L < N) { A = N - 2; } else { A = 2000000000 - 2; } printf("%lld", A); return 0; }