結果
問題 |
No.299 蟻本が読めない
|
ユーザー |
![]() |
提出日時 | 2023-05-30 11:45:36 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 422 bytes |
コンパイル時間 | 308 ms |
コンパイル使用メモリ | 28,800 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-28 11:40:49 |
合計ジャッジ時間 | 974 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 2 |
ソースコード
#include <stdio.h> /// <summary> /// 入力された数字を返す /// </summary> /// <returns></returns> int ReadNum() { int negate = 0; char c = getchar(); int num = 0; int numCnt = 0; while (c != '\n') { if (c == '-') { negate = 1; } else { num = num * 10 + c - '0'; } c = getchar(); } if (negate == 1) { num *= -1; } return num; } int main() { printf("%d\n", 316+ ((ReadNum()-1)*52)); }