結果
問題 |
No.1004 サイコロの実装 (2)
|
ユーザー |
![]() |
提出日時 | 2020-03-06 21:37:26 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 395 bytes |
コンパイル時間 | 2,008 ms |
コンパイル使用メモリ | 192,292 KB |
最終ジャッジ日時 | 2025-01-09 04:50:24 |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 6 WA * 32 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define modulo 1000000007 #define mod(mod_x) ((((long long)mod_x+modulo))%modulo) #define Inf 1000000000 int main(){ long long a,b,x,N; cin>>a>>b>>x>>N; long long c1 = 0,c2 = 0; if(x%2==1){ //c1 += N/4; c2 += N/4; //if(N>=3)c2+=1; } else{ c1 += N/4; N %= 4; if(N>=3)c1 += 1; } cout<<c1<<' '<<c2<<endl; return 0; }