結果
| 問題 |
No.1004 サイコロの実装 (2)
|
| コンテスト | |
| ユーザー |
沙耶花
|
| 提出日時 | 2020-03-06 21:39:42 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 397 bytes |
| コンパイル時間 | 2,035 ms |
| コンパイル使用メモリ | 191,500 KB |
| 最終ジャッジ日時 | 2025-01-09 04:54:38 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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/2;
//if(N>=3)c2+=1;
}
else{
c1 += N/2;
N %= 4;
//if(N>=3)c1 += 1;
}
cout<<c1<<' '<<c2<<endl;
return 0;
}
沙耶花