結果
| 問題 |
No.1004 サイコロの実装 (2)
|
| コンテスト | |
| ユーザー |
tnakao0123
|
| 提出日時 | 2020-03-07 00:01:54 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 712 bytes |
| コンパイル時間 | 741 ms |
| コンパイル使用メモリ | 94,072 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-14 10:16:31 |
| 合計ジャッジ時間 | 2,061 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 6 WA * 32 |
ソースコード
/* -*- coding: utf-8 -*-
*
* 1004.cc: No.1004 サイコロの実装 (2) - yukicoder
*/
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<iostream>
#include<string>
#include<vector>
#include<map>
#include<set>
#include<stack>
#include<list>
#include<queue>
#include<deque>
#include<algorithm>
#include<numeric>
#include<utility>
#include<complex>
#include<functional>
using namespace std;
/* constant */
/* typedef */
typedef unsigned int ui;
/* global variables */
/* subroutines */
/* main */
int main() {
ui a, b, x, n;
scanf("%u%u%u%u", &a, &b, &x, &n);
ui s = 0, t = 0;
if (x & 1) s= (n + 1) / 4;
else t = n / 4;
printf("%u %u\n", s, t);
return 0;
}
tnakao0123