結果

問題 No.1003 サイコロの実装 (1)
ユーザー Kou0406
提出日時 2025-01-19 11:01:29
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 248 bytes
コンパイル時間 418 ms
コンパイル使用メモリ 58,244 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2025-01-19 11:01:48
合計ジャッジ時間 1,394 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:11:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   11 |     scanf("%lld",&n);
      |     ~~~~~^~~~~~~~~~~

ソースコード

diff #

#include<iostream>
#include<cassert>
#define rep(i,n) for(i=0;i<(int)(n);i++)
using namespace std;
typedef long long ll;
typedef unsigned long long ull;

ll n;

int main(){
    scanf("%lld",&n);
    printf("%s\n",n%6==0?"Yes":"No");
    return 0;
}
0