結果
| 問題 |
No.1004 サイコロの実装 (2)
|
| コンテスト | |
| ユーザー |
沙耶花
|
| 提出日時 | 2020-03-06 21:31:02 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 435 bytes |
| コンパイル時間 | 2,974 ms |
| コンパイル使用メモリ | 191,468 KB |
| 最終ジャッジ日時 | 2025-01-09 04:47:49 |
|
ジャッジサーバー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==0){
c1 += N/4;
c2 += N/4;
N %= 4;
if(N>=3)c1 += 1;
//if(N>=3)c2+=1;
}
else{
c1 += N/4;
c2 += N/4;
N %= 4;
if(N>=3)c1 += 1;
}
cout<<c1<<' '<<c2<<endl;
return 0;
}
沙耶花