結果
問題 |
No.773 コンテスト
|
ユーザー |
|
提出日時 | 2019-10-06 14:51:51 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 252 bytes |
コンパイル時間 | 291 ms |
コンパイル使用メモリ | 38,016 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-10 02:14:35 |
合計ジャッジ時間 | 1,318 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
#include <cstdio> #include <cmath> int main( void ){ int A, B; if(!scanf( "%d%d", &A, &B )) return -1; int days = 3; for (int i = 0; i < 3; i++){ if ((A <=( 23 + i ) ) && (( 23 + i ) <= B )) days--; } printf( "%d\n", days ); return 0; }