結果
問題 |
No.1004 サイコロの実装 (2)
|
ユーザー |
|
提出日時 | 2020-03-06 22:10:39 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 230 bytes |
コンパイル時間 | 2,092 ms |
コンパイル使用メモリ | 191,392 KB |
最終ジャッジ日時 | 2025-01-09 05:13:00 |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 3 WA * 35 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:10:32: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘lint’ {aka ‘long long int’} [-Wformat=] 10 | if(x0%2==0) printf("0 %d\n",n/2); | ~^ ~~~ | | | | int lint {aka long long int} | %lld main.cpp:11:30: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘lint’ {aka ‘long long int’} [-Wformat=] 11 | else printf("%d 0\n",n/2); | ~^ ~~~ | | | | int lint {aka long long int} | %lld
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(int i=0;i<(n);i++) using namespace std; using lint=long long; int main(){ lint x0,n; cin>>x0>>n; if(x0%2==0) printf("0 %d\n",n/2); else printf("%d 0\n",n/2); return 0; }