Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const std = @import("std");
- const warn = std.debug.warn;
- const parse = @import("byeparse\\atoi");
- fn solve() usize {
- //const f = "hello, this is a string with some spaces in it.";
- const f = @embedFile("Input.txt");
- var spaces: usize = 0;
- inline for(f) |idx, c| {
- if (c == ' ') {
- spaces += 1;
- }
- }
- return spaces;
- }
- pub fn main() void {
- const ns = comptime brk: {
- @setEvalBranchQuota(3500);
- break :brk solve();
- };
- warn("{}\n", ns);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement